github.com/aavshr/aws-sdk-go@v1.41.3/service/configservice/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package configservice 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeConformancePackTemplateValidationException for service response error code 12 // "ConformancePackTemplateValidationException". 13 // 14 // You have specified a template that is not valid or supported. 15 ErrCodeConformancePackTemplateValidationException = "ConformancePackTemplateValidationException" 16 17 // ErrCodeInsufficientDeliveryPolicyException for service response error code 18 // "InsufficientDeliveryPolicyException". 19 // 20 // Your Amazon S3 bucket policy does not permit Config to write to it. 21 ErrCodeInsufficientDeliveryPolicyException = "InsufficientDeliveryPolicyException" 22 23 // ErrCodeInsufficientPermissionsException for service response error code 24 // "InsufficientPermissionsException". 25 // 26 // Indicates one of the following errors: 27 // 28 // * For PutConfigRule, the rule cannot be created because the IAM role assigned 29 // to Config lacks permissions to perform the config:Put* action. 30 // 31 // * For PutConfigRule, the Lambda function cannot be invoked. Check the 32 // function ARN, and check the function's permissions. 33 // 34 // * For PutOrganizationConfigRule, organization config rule cannot be created 35 // because you do not have permissions to call IAM GetRole action or create 36 // a service linked role. 37 // 38 // * For PutConformancePack and PutOrganizationConformancePack, a conformance 39 // pack cannot be created because you do not have permissions: To call IAM 40 // GetRole action or create a service linked role. To read Amazon S3 bucket. 41 ErrCodeInsufficientPermissionsException = "InsufficientPermissionsException" 42 43 // ErrCodeInvalidConfigurationRecorderNameException for service response error code 44 // "InvalidConfigurationRecorderNameException". 45 // 46 // You have provided a configuration recorder name that is not valid. 47 ErrCodeInvalidConfigurationRecorderNameException = "InvalidConfigurationRecorderNameException" 48 49 // ErrCodeInvalidDeliveryChannelNameException for service response error code 50 // "InvalidDeliveryChannelNameException". 51 // 52 // The specified delivery channel name is not valid. 53 ErrCodeInvalidDeliveryChannelNameException = "InvalidDeliveryChannelNameException" 54 55 // ErrCodeInvalidExpressionException for service response error code 56 // "InvalidExpressionException". 57 // 58 // The syntax of the query is incorrect. 59 ErrCodeInvalidExpressionException = "InvalidExpressionException" 60 61 // ErrCodeInvalidLimitException for service response error code 62 // "InvalidLimitException". 63 // 64 // The specified limit is outside the allowable range. 65 ErrCodeInvalidLimitException = "InvalidLimitException" 66 67 // ErrCodeInvalidNextTokenException for service response error code 68 // "InvalidNextTokenException". 69 // 70 // The specified next token is invalid. Specify the nextToken string that was 71 // returned in the previous response to get the next page of results. 72 ErrCodeInvalidNextTokenException = "InvalidNextTokenException" 73 74 // ErrCodeInvalidParameterValueException for service response error code 75 // "InvalidParameterValueException". 76 // 77 // One or more of the specified parameters are invalid. Verify that your parameters 78 // are valid and try again. 79 ErrCodeInvalidParameterValueException = "InvalidParameterValueException" 80 81 // ErrCodeInvalidRecordingGroupException for service response error code 82 // "InvalidRecordingGroupException". 83 // 84 // Config throws an exception if the recording group does not contain a valid 85 // list of resource types. Invalid values might also be incorrectly formatted. 86 ErrCodeInvalidRecordingGroupException = "InvalidRecordingGroupException" 87 88 // ErrCodeInvalidResultTokenException for service response error code 89 // "InvalidResultTokenException". 90 // 91 // The specified ResultToken is invalid. 92 ErrCodeInvalidResultTokenException = "InvalidResultTokenException" 93 94 // ErrCodeInvalidRoleException for service response error code 95 // "InvalidRoleException". 96 // 97 // You have provided a null or empty role ARN. 98 ErrCodeInvalidRoleException = "InvalidRoleException" 99 100 // ErrCodeInvalidS3KeyPrefixException for service response error code 101 // "InvalidS3KeyPrefixException". 102 // 103 // The specified Amazon S3 key prefix is not valid. 104 ErrCodeInvalidS3KeyPrefixException = "InvalidS3KeyPrefixException" 105 106 // ErrCodeInvalidS3KmsKeyArnException for service response error code 107 // "InvalidS3KmsKeyArnException". 108 // 109 // The specified Amazon KMS Key ARN is not valid. 110 ErrCodeInvalidS3KmsKeyArnException = "InvalidS3KmsKeyArnException" 111 112 // ErrCodeInvalidSNSTopicARNException for service response error code 113 // "InvalidSNSTopicARNException". 114 // 115 // The specified Amazon SNS topic does not exist. 116 ErrCodeInvalidSNSTopicARNException = "InvalidSNSTopicARNException" 117 118 // ErrCodeInvalidTimeRangeException for service response error code 119 // "InvalidTimeRangeException". 120 // 121 // The specified time range is not valid. The earlier time is not chronologically 122 // before the later time. 123 ErrCodeInvalidTimeRangeException = "InvalidTimeRangeException" 124 125 // ErrCodeLastDeliveryChannelDeleteFailedException for service response error code 126 // "LastDeliveryChannelDeleteFailedException". 127 // 128 // You cannot delete the delivery channel you specified because the configuration 129 // recorder is running. 130 ErrCodeLastDeliveryChannelDeleteFailedException = "LastDeliveryChannelDeleteFailedException" 131 132 // ErrCodeLimitExceededException for service response error code 133 // "LimitExceededException". 134 // 135 // For StartConfigRulesEvaluation API, this exception is thrown if an evaluation 136 // is in progress or if you call the StartConfigRulesEvaluation API more than 137 // once per minute. 138 // 139 // For PutConfigurationAggregator API, this exception is thrown if the number 140 // of accounts and aggregators exceeds the limit. 141 ErrCodeLimitExceededException = "LimitExceededException" 142 143 // ErrCodeMaxActiveResourcesExceededException for service response error code 144 // "MaxActiveResourcesExceededException". 145 // 146 // You have reached the limit (100,000) of active custom resource types in your 147 // account. Delete unused resources using DeleteResourceConfig. 148 ErrCodeMaxActiveResourcesExceededException = "MaxActiveResourcesExceededException" 149 150 // ErrCodeMaxNumberOfConfigRulesExceededException for service response error code 151 // "MaxNumberOfConfigRulesExceededException". 152 // 153 // Failed to add the Config rule because the account already contains the maximum 154 // number of 150 rules. Consider deleting any deactivated rules before you add 155 // new rules. 156 ErrCodeMaxNumberOfConfigRulesExceededException = "MaxNumberOfConfigRulesExceededException" 157 158 // ErrCodeMaxNumberOfConfigurationRecordersExceededException for service response error code 159 // "MaxNumberOfConfigurationRecordersExceededException". 160 // 161 // You have reached the limit of the number of recorders you can create. 162 ErrCodeMaxNumberOfConfigurationRecordersExceededException = "MaxNumberOfConfigurationRecordersExceededException" 163 164 // ErrCodeMaxNumberOfConformancePacksExceededException for service response error code 165 // "MaxNumberOfConformancePacksExceededException". 166 // 167 // You have reached the limit (6) of the number of conformance packs in an account 168 // (6 conformance pack with 25 Config rules per pack). 169 ErrCodeMaxNumberOfConformancePacksExceededException = "MaxNumberOfConformancePacksExceededException" 170 171 // ErrCodeMaxNumberOfDeliveryChannelsExceededException for service response error code 172 // "MaxNumberOfDeliveryChannelsExceededException". 173 // 174 // You have reached the limit of the number of delivery channels you can create. 175 ErrCodeMaxNumberOfDeliveryChannelsExceededException = "MaxNumberOfDeliveryChannelsExceededException" 176 177 // ErrCodeMaxNumberOfOrganizationConfigRulesExceededException for service response error code 178 // "MaxNumberOfOrganizationConfigRulesExceededException". 179 // 180 // You have reached the limit of the number of organization config rules you 181 // can create. 182 ErrCodeMaxNumberOfOrganizationConfigRulesExceededException = "MaxNumberOfOrganizationConfigRulesExceededException" 183 184 // ErrCodeMaxNumberOfOrganizationConformancePacksExceededException for service response error code 185 // "MaxNumberOfOrganizationConformancePacksExceededException". 186 // 187 // You have reached the limit (6) of the number of organization conformance 188 // packs in an account (6 conformance pack with 25 Config rules per pack per 189 // account). 190 ErrCodeMaxNumberOfOrganizationConformancePacksExceededException = "MaxNumberOfOrganizationConformancePacksExceededException" 191 192 // ErrCodeMaxNumberOfRetentionConfigurationsExceededException for service response error code 193 // "MaxNumberOfRetentionConfigurationsExceededException". 194 // 195 // Failed to add the retention configuration because a retention configuration 196 // with that name already exists. 197 ErrCodeMaxNumberOfRetentionConfigurationsExceededException = "MaxNumberOfRetentionConfigurationsExceededException" 198 199 // ErrCodeNoAvailableConfigurationRecorderException for service response error code 200 // "NoAvailableConfigurationRecorderException". 201 // 202 // There are no configuration recorders available to provide the role needed 203 // to describe your resources. Create a configuration recorder. 204 ErrCodeNoAvailableConfigurationRecorderException = "NoAvailableConfigurationRecorderException" 205 206 // ErrCodeNoAvailableDeliveryChannelException for service response error code 207 // "NoAvailableDeliveryChannelException". 208 // 209 // There is no delivery channel available to record configurations. 210 ErrCodeNoAvailableDeliveryChannelException = "NoAvailableDeliveryChannelException" 211 212 // ErrCodeNoAvailableOrganizationException for service response error code 213 // "NoAvailableOrganizationException". 214 // 215 // Organization is no longer available. 216 ErrCodeNoAvailableOrganizationException = "NoAvailableOrganizationException" 217 218 // ErrCodeNoRunningConfigurationRecorderException for service response error code 219 // "NoRunningConfigurationRecorderException". 220 // 221 // There is no configuration recorder running. 222 ErrCodeNoRunningConfigurationRecorderException = "NoRunningConfigurationRecorderException" 223 224 // ErrCodeNoSuchBucketException for service response error code 225 // "NoSuchBucketException". 226 // 227 // The specified Amazon S3 bucket does not exist. 228 ErrCodeNoSuchBucketException = "NoSuchBucketException" 229 230 // ErrCodeNoSuchConfigRuleException for service response error code 231 // "NoSuchConfigRuleException". 232 // 233 // One or more Config rules in the request are invalid. Verify that the rule 234 // names are correct and try again. 235 ErrCodeNoSuchConfigRuleException = "NoSuchConfigRuleException" 236 237 // ErrCodeNoSuchConfigRuleInConformancePackException for service response error code 238 // "NoSuchConfigRuleInConformancePackException". 239 // 240 // Config rule that you passed in the filter does not exist. 241 ErrCodeNoSuchConfigRuleInConformancePackException = "NoSuchConfigRuleInConformancePackException" 242 243 // ErrCodeNoSuchConfigurationAggregatorException for service response error code 244 // "NoSuchConfigurationAggregatorException". 245 // 246 // You have specified a configuration aggregator that does not exist. 247 ErrCodeNoSuchConfigurationAggregatorException = "NoSuchConfigurationAggregatorException" 248 249 // ErrCodeNoSuchConfigurationRecorderException for service response error code 250 // "NoSuchConfigurationRecorderException". 251 // 252 // You have specified a configuration recorder that does not exist. 253 ErrCodeNoSuchConfigurationRecorderException = "NoSuchConfigurationRecorderException" 254 255 // ErrCodeNoSuchConformancePackException for service response error code 256 // "NoSuchConformancePackException". 257 // 258 // You specified one or more conformance packs that do not exist. 259 ErrCodeNoSuchConformancePackException = "NoSuchConformancePackException" 260 261 // ErrCodeNoSuchDeliveryChannelException for service response error code 262 // "NoSuchDeliveryChannelException". 263 // 264 // You have specified a delivery channel that does not exist. 265 ErrCodeNoSuchDeliveryChannelException = "NoSuchDeliveryChannelException" 266 267 // ErrCodeNoSuchOrganizationConfigRuleException for service response error code 268 // "NoSuchOrganizationConfigRuleException". 269 // 270 // You specified one or more organization config rules that do not exist. 271 ErrCodeNoSuchOrganizationConfigRuleException = "NoSuchOrganizationConfigRuleException" 272 273 // ErrCodeNoSuchOrganizationConformancePackException for service response error code 274 // "NoSuchOrganizationConformancePackException". 275 // 276 // Config organization conformance pack that you passed in the filter does not 277 // exist. 278 // 279 // For DeleteOrganizationConformancePack, you tried to delete an organization 280 // conformance pack that does not exist. 281 ErrCodeNoSuchOrganizationConformancePackException = "NoSuchOrganizationConformancePackException" 282 283 // ErrCodeNoSuchRemediationConfigurationException for service response error code 284 // "NoSuchRemediationConfigurationException". 285 // 286 // You specified an Config rule without a remediation configuration. 287 ErrCodeNoSuchRemediationConfigurationException = "NoSuchRemediationConfigurationException" 288 289 // ErrCodeNoSuchRemediationExceptionException for service response error code 290 // "NoSuchRemediationExceptionException". 291 // 292 // You tried to delete a remediation exception that does not exist. 293 ErrCodeNoSuchRemediationExceptionException = "NoSuchRemediationExceptionException" 294 295 // ErrCodeNoSuchRetentionConfigurationException for service response error code 296 // "NoSuchRetentionConfigurationException". 297 // 298 // You have specified a retention configuration that does not exist. 299 ErrCodeNoSuchRetentionConfigurationException = "NoSuchRetentionConfigurationException" 300 301 // ErrCodeOrganizationAccessDeniedException for service response error code 302 // "OrganizationAccessDeniedException". 303 // 304 // For PutConfigurationAggregator API, you can see this exception for the following 305 // reasons: 306 // 307 // * No permission to call EnableAWSServiceAccess API 308 // 309 // * The configuration aggregator cannot be updated because your Amazon Web 310 // Services Organization management account or the delegated administrator 311 // role changed. Delete this aggregator and create a new one with the current 312 // Amazon Web Services Organization. 313 // 314 // * The configuration aggregator is associated with a previous Amazon Web 315 // Services Organization and Config cannot aggregate data with current Amazon 316 // Web Services Organization. Delete this aggregator and create a new one 317 // with the current Amazon Web Services Organization. 318 // 319 // * You are not a registered delegated administrator for Config with permissions 320 // to call ListDelegatedAdministrators API. Ensure that the management account 321 // registers delagated administrator for Config service principle name before 322 // the delegated administrator creates an aggregator. 323 // 324 // For all OrganizationConfigRule and OrganizationConformancePack APIs, Config 325 // throws an exception if APIs are called from member accounts. All APIs must 326 // be called from organization master account. 327 ErrCodeOrganizationAccessDeniedException = "OrganizationAccessDeniedException" 328 329 // ErrCodeOrganizationAllFeaturesNotEnabledException for service response error code 330 // "OrganizationAllFeaturesNotEnabledException". 331 // 332 // Config resource cannot be created because your organization does not have 333 // all features enabled. 334 ErrCodeOrganizationAllFeaturesNotEnabledException = "OrganizationAllFeaturesNotEnabledException" 335 336 // ErrCodeOrganizationConformancePackTemplateValidationException for service response error code 337 // "OrganizationConformancePackTemplateValidationException". 338 // 339 // You have specified a template that is not valid or supported. 340 ErrCodeOrganizationConformancePackTemplateValidationException = "OrganizationConformancePackTemplateValidationException" 341 342 // ErrCodeOversizedConfigurationItemException for service response error code 343 // "OversizedConfigurationItemException". 344 // 345 // The configuration item size is outside the allowable range. 346 ErrCodeOversizedConfigurationItemException = "OversizedConfigurationItemException" 347 348 // ErrCodeRemediationInProgressException for service response error code 349 // "RemediationInProgressException". 350 // 351 // Remediation action is in progress. You can either cancel execution in Amazon 352 // Web Services Systems Manager or wait and try again later. 353 ErrCodeRemediationInProgressException = "RemediationInProgressException" 354 355 // ErrCodeResourceConcurrentModificationException for service response error code 356 // "ResourceConcurrentModificationException". 357 // 358 // Two users are trying to modify the same query at the same time. Wait for 359 // a moment and try again. 360 ErrCodeResourceConcurrentModificationException = "ResourceConcurrentModificationException" 361 362 // ErrCodeResourceInUseException for service response error code 363 // "ResourceInUseException". 364 // 365 // You see this exception in the following cases: 366 // 367 // * For DeleteConfigRule, Config is deleting this rule. Try your request 368 // again later. 369 // 370 // * For DeleteConfigRule, the rule is deleting your evaluation results. 371 // Try your request again later. 372 // 373 // * For DeleteConfigRule, a remediation action is associated with the rule 374 // and Config cannot delete this rule. Delete the remediation action associated 375 // with the rule before deleting the rule and try your request again later. 376 // 377 // * For PutConfigOrganizationRule, organization config rule deletion is 378 // in progress. Try your request again later. 379 // 380 // * For DeleteOrganizationConfigRule, organization config rule creation 381 // is in progress. Try your request again later. 382 // 383 // * For PutConformancePack and PutOrganizationConformancePack, a conformance 384 // pack creation, update, and deletion is in progress. Try your request again 385 // later. 386 // 387 // * For DeleteConformancePack, a conformance pack creation, update, and 388 // deletion is in progress. Try your request again later. 389 ErrCodeResourceInUseException = "ResourceInUseException" 390 391 // ErrCodeResourceNotDiscoveredException for service response error code 392 // "ResourceNotDiscoveredException". 393 // 394 // You have specified a resource that is either unknown or has not been discovered. 395 ErrCodeResourceNotDiscoveredException = "ResourceNotDiscoveredException" 396 397 // ErrCodeResourceNotFoundException for service response error code 398 // "ResourceNotFoundException". 399 // 400 // You have specified a resource that does not exist. 401 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 402 403 // ErrCodeTooManyTagsException for service response error code 404 // "TooManyTagsException". 405 // 406 // You have reached the limit of the number of tags you can use. You have more 407 // than 50 tags. 408 ErrCodeTooManyTagsException = "TooManyTagsException" 409 410 // ErrCodeValidationException for service response error code 411 // "ValidationException". 412 // 413 // The requested action is not valid. 414 // 415 // For PutStoredQuery, you will see this exception if there are missing required 416 // fields or if the input value fails the validation, or if you are trying to 417 // create more than 300 queries. 418 // 419 // For GetStoredQuery, ListStoredQuery, and DeleteStoredQuery you will see this 420 // exception if there are missing required fields or if the input value fails 421 // the validation. 422 ErrCodeValidationException = "ValidationException" 423 ) 424 425 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 426 "ConformancePackTemplateValidationException": newErrorConformancePackTemplateValidationException, 427 "InsufficientDeliveryPolicyException": newErrorInsufficientDeliveryPolicyException, 428 "InsufficientPermissionsException": newErrorInsufficientPermissionsException, 429 "InvalidConfigurationRecorderNameException": newErrorInvalidConfigurationRecorderNameException, 430 "InvalidDeliveryChannelNameException": newErrorInvalidDeliveryChannelNameException, 431 "InvalidExpressionException": newErrorInvalidExpressionException, 432 "InvalidLimitException": newErrorInvalidLimitException, 433 "InvalidNextTokenException": newErrorInvalidNextTokenException, 434 "InvalidParameterValueException": newErrorInvalidParameterValueException, 435 "InvalidRecordingGroupException": newErrorInvalidRecordingGroupException, 436 "InvalidResultTokenException": newErrorInvalidResultTokenException, 437 "InvalidRoleException": newErrorInvalidRoleException, 438 "InvalidS3KeyPrefixException": newErrorInvalidS3KeyPrefixException, 439 "InvalidS3KmsKeyArnException": newErrorInvalidS3KmsKeyArnException, 440 "InvalidSNSTopicARNException": newErrorInvalidSNSTopicARNException, 441 "InvalidTimeRangeException": newErrorInvalidTimeRangeException, 442 "LastDeliveryChannelDeleteFailedException": newErrorLastDeliveryChannelDeleteFailedException, 443 "LimitExceededException": newErrorLimitExceededException, 444 "MaxActiveResourcesExceededException": newErrorMaxActiveResourcesExceededException, 445 "MaxNumberOfConfigRulesExceededException": newErrorMaxNumberOfConfigRulesExceededException, 446 "MaxNumberOfConfigurationRecordersExceededException": newErrorMaxNumberOfConfigurationRecordersExceededException, 447 "MaxNumberOfConformancePacksExceededException": newErrorMaxNumberOfConformancePacksExceededException, 448 "MaxNumberOfDeliveryChannelsExceededException": newErrorMaxNumberOfDeliveryChannelsExceededException, 449 "MaxNumberOfOrganizationConfigRulesExceededException": newErrorMaxNumberOfOrganizationConfigRulesExceededException, 450 "MaxNumberOfOrganizationConformancePacksExceededException": newErrorMaxNumberOfOrganizationConformancePacksExceededException, 451 "MaxNumberOfRetentionConfigurationsExceededException": newErrorMaxNumberOfRetentionConfigurationsExceededException, 452 "NoAvailableConfigurationRecorderException": newErrorNoAvailableConfigurationRecorderException, 453 "NoAvailableDeliveryChannelException": newErrorNoAvailableDeliveryChannelException, 454 "NoAvailableOrganizationException": newErrorNoAvailableOrganizationException, 455 "NoRunningConfigurationRecorderException": newErrorNoRunningConfigurationRecorderException, 456 "NoSuchBucketException": newErrorNoSuchBucketException, 457 "NoSuchConfigRuleException": newErrorNoSuchConfigRuleException, 458 "NoSuchConfigRuleInConformancePackException": newErrorNoSuchConfigRuleInConformancePackException, 459 "NoSuchConfigurationAggregatorException": newErrorNoSuchConfigurationAggregatorException, 460 "NoSuchConfigurationRecorderException": newErrorNoSuchConfigurationRecorderException, 461 "NoSuchConformancePackException": newErrorNoSuchConformancePackException, 462 "NoSuchDeliveryChannelException": newErrorNoSuchDeliveryChannelException, 463 "NoSuchOrganizationConfigRuleException": newErrorNoSuchOrganizationConfigRuleException, 464 "NoSuchOrganizationConformancePackException": newErrorNoSuchOrganizationConformancePackException, 465 "NoSuchRemediationConfigurationException": newErrorNoSuchRemediationConfigurationException, 466 "NoSuchRemediationExceptionException": newErrorNoSuchRemediationExceptionException, 467 "NoSuchRetentionConfigurationException": newErrorNoSuchRetentionConfigurationException, 468 "OrganizationAccessDeniedException": newErrorOrganizationAccessDeniedException, 469 "OrganizationAllFeaturesNotEnabledException": newErrorOrganizationAllFeaturesNotEnabledException, 470 "OrganizationConformancePackTemplateValidationException": newErrorOrganizationConformancePackTemplateValidationException, 471 "OversizedConfigurationItemException": newErrorOversizedConfigurationItemException, 472 "RemediationInProgressException": newErrorRemediationInProgressException, 473 "ResourceConcurrentModificationException": newErrorResourceConcurrentModificationException, 474 "ResourceInUseException": newErrorResourceInUseException, 475 "ResourceNotDiscoveredException": newErrorResourceNotDiscoveredException, 476 "ResourceNotFoundException": newErrorResourceNotFoundException, 477 "TooManyTagsException": newErrorTooManyTagsException, 478 "ValidationException": newErrorValidationException, 479 }