/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace Aws::Client; using namespace Aws::Utils; using namespace Aws::SSM; using namespace Aws::SSM::Model; namespace Aws { namespace SSM { template<> AWS_SSM_API OpsItemRelatedItemAlreadyExistsException SSMError::GetModeledError() { assert(this->GetErrorType() == SSMErrors::OPS_ITEM_RELATED_ITEM_ALREADY_EXISTS); return OpsItemRelatedItemAlreadyExistsException(this->GetJsonPayload().View()); } template<> AWS_SSM_API ResourcePolicyLimitExceededException SSMError::GetModeledError() { assert(this->GetErrorType() == SSMErrors::RESOURCE_POLICY_LIMIT_EXCEEDED); return ResourcePolicyLimitExceededException(this->GetJsonPayload().View()); } template<> AWS_SSM_API ResourceDataSyncNotFoundException SSMError::GetModeledError() { assert(this->GetErrorType() == SSMErrors::RESOURCE_DATA_SYNC_NOT_FOUND); return ResourceDataSyncNotFoundException(this->GetJsonPayload().View()); } template<> AWS_SSM_API OpsItemAlreadyExistsException SSMError::GetModeledError() { assert(this->GetErrorType() == SSMErrors::OPS_ITEM_ALREADY_EXISTS); return OpsItemAlreadyExistsException(this->GetJsonPayload().View()); } template<> AWS_SSM_API ResourcePolicyInvalidParameterException SSMError::GetModeledError() { assert(this->GetErrorType() == SSMErrors::RESOURCE_POLICY_INVALID_PARAMETER); return ResourcePolicyInvalidParameterException(this->GetJsonPayload().View()); } template<> AWS_SSM_API ItemSizeLimitExceededException SSMError::GetModeledError() { assert(this->GetErrorType() == SSMErrors::ITEM_SIZE_LIMIT_EXCEEDED); return ItemSizeLimitExceededException(this->GetJsonPayload().View()); } template<> AWS_SSM_API UnsupportedInventoryItemContextException SSMError::GetModeledError() { assert(this->GetErrorType() == SSMErrors::UNSUPPORTED_INVENTORY_ITEM_CONTEXT); return UnsupportedInventoryItemContextException(this->GetJsonPayload().View()); } template<> AWS_SSM_API ResourceDataSyncAlreadyExistsException SSMError::GetModeledError() { assert(this->GetErrorType() == SSMErrors::RESOURCE_DATA_SYNC_ALREADY_EXISTS); return ResourceDataSyncAlreadyExistsException(this->GetJsonPayload().View()); } template<> AWS_SSM_API OpsItemLimitExceededException SSMError::GetModeledError() { assert(this->GetErrorType() == SSMErrors::OPS_ITEM_LIMIT_EXCEEDED); return OpsItemLimitExceededException(this->GetJsonPayload().View()); } template<> AWS_SSM_API ItemContentMismatchException SSMError::GetModeledError() { assert(this->GetErrorType() == SSMErrors::ITEM_CONTENT_MISMATCH); return ItemContentMismatchException(this->GetJsonPayload().View()); } template<> AWS_SSM_API InvalidItemContentException SSMError::GetModeledError() { assert(this->GetErrorType() == SSMErrors::INVALID_ITEM_CONTENT); return InvalidItemContentException(this->GetJsonPayload().View()); } template<> AWS_SSM_API OpsItemInvalidParameterException SSMError::GetModeledError() { assert(this->GetErrorType() == SSMErrors::OPS_ITEM_INVALID_PARAMETER); return OpsItemInvalidParameterException(this->GetJsonPayload().View()); } namespace SSMErrorMapper { static const int INVALID_OUTPUT_LOCATION_HASH = HashingUtils::HashString("InvalidOutputLocation"); static const int RESOURCE_DATA_SYNC_COUNT_EXCEEDED_HASH = HashingUtils::HashString("ResourceDataSyncCountExceededException"); static const int PARAMETER_VERSION_NOT_FOUND_HASH = HashingUtils::HashString("ParameterVersionNotFound"); static const int INVALID_POLICY_TYPE_HASH = HashingUtils::HashString("InvalidPolicyTypeException"); static const int INVALID_AGGREGATOR_HASH = HashingUtils::HashString("InvalidAggregatorException"); static const int INVALID_INVENTORY_REQUEST_HASH = HashingUtils::HashString("InvalidInventoryRequestException"); static const int DUPLICATE_DOCUMENT_VERSION_NAME_HASH = HashingUtils::HashString("DuplicateDocumentVersionName"); static const int OPS_METADATA_INVALID_ARGUMENT_HASH = HashingUtils::HashString("OpsMetadataInvalidArgumentException"); static const int INVALID_TYPE_NAME_HASH = HashingUtils::HashString("InvalidTypeNameException"); static const int UNSUPPORTED_INVENTORY_SCHEMA_VERSION_HASH = HashingUtils::HashString("UnsupportedInventorySchemaVersionException"); static const int ASSOCIATION_DOES_NOT_EXIST_HASH = HashingUtils::HashString("AssociationDoesNotExist"); static const int ASSOCIATION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AssociationLimitExceeded"); static const int INVALID_OPTION_HASH = HashingUtils::HashString("InvalidOptionException"); static const int PARAMETER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ParameterLimitExceeded"); static const int SUB_TYPE_COUNT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SubTypeCountLimitExceededException"); static const int ASSOCIATION_VERSION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AssociationVersionLimitExceeded"); static const int INVALID_PERMISSION_TYPE_HASH = HashingUtils::HashString("InvalidPermissionType"); static const int INCOMPATIBLE_POLICY_HASH = HashingUtils::HashString("IncompatiblePolicyException"); static const int INVALID_ASSOCIATION_VERSION_HASH = HashingUtils::HashString("InvalidAssociationVersion"); static const int OPS_ITEM_RELATED_ITEM_ALREADY_EXISTS_HASH = HashingUtils::HashString("OpsItemRelatedItemAlreadyExistsException"); static const int PARAMETER_NOT_FOUND_HASH = HashingUtils::HashString("ParameterNotFound"); static const int INVALID_DOCUMENT_TYPE_HASH = HashingUtils::HashString("InvalidDocumentType"); static const int RESOURCE_POLICY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourcePolicyLimitExceededException"); static const int RESOURCE_POLICY_CONFLICT_HASH = HashingUtils::HashString("ResourcePolicyConflictException"); static const int PARAMETER_ALREADY_EXISTS_HASH = HashingUtils::HashString("ParameterAlreadyExists"); static const int HIERARCHY_LEVEL_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("HierarchyLevelLimitExceededException"); static const int DOCUMENT_VERSION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DocumentVersionLimitExceeded"); static const int RESOURCE_DATA_SYNC_NOT_FOUND_HASH = HashingUtils::HashString("ResourceDataSyncNotFoundException"); static const int INVALID_FILTER_VALUE_HASH = HashingUtils::HashString("InvalidFilterValue"); static const int OPS_ITEM_ALREADY_EXISTS_HASH = HashingUtils::HashString("OpsItemAlreadyExistsException"); static const int INVALID_DELETE_INVENTORY_PARAMETERS_HASH = HashingUtils::HashString("InvalidDeleteInventoryParametersException"); static const int OPS_METADATA_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OpsMetadataLimitExceededException"); static const int FEATURE_NOT_AVAILABLE_HASH = HashingUtils::HashString("FeatureNotAvailableException"); static const int INVALID_PLUGIN_NAME_HASH = HashingUtils::HashString("InvalidPluginName"); static const int INVALID_DOCUMENT_HASH = HashingUtils::HashString("InvalidDocument"); static const int INVALID_AUTOMATION_SIGNAL_HASH = HashingUtils::HashString("InvalidAutomationSignalException"); static const int RESOURCE_POLICY_INVALID_PARAMETER_HASH = HashingUtils::HashString("ResourcePolicyInvalidParameterException"); static const int AUTOMATION_DEFINITION_NOT_APPROVED_HASH = HashingUtils::HashString("AutomationDefinitionNotApprovedException"); static const int AUTOMATION_EXECUTION_NOT_FOUND_HASH = HashingUtils::HashString("AutomationExecutionNotFoundException"); static const int INVALID_INVENTORY_ITEM_CONTEXT_HASH = HashingUtils::HashString("InvalidInventoryItemContextException"); static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); static const int ASSOCIATION_EXECUTION_DOES_NOT_EXIST_HASH = HashingUtils::HashString("AssociationExecutionDoesNotExist"); static const int INVALID_RESOURCE_ID_HASH = HashingUtils::HashString("InvalidResourceId"); static const int INVALID_INSTANCE_ID_HASH = HashingUtils::HashString("InvalidInstanceId"); static const int ASSOCIATED_INSTANCES_HASH = HashingUtils::HashString("AssociatedInstances"); static const int OPS_METADATA_ALREADY_EXISTS_HASH = HashingUtils::HashString("OpsMetadataAlreadyExistsException"); static const int TARGET_IN_USE_HASH = HashingUtils::HashString("TargetInUseException"); static const int INVALID_KEY_ID_HASH = HashingUtils::HashString("InvalidKeyId"); static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); static const int ITEM_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ItemSizeLimitExceededException"); static const int OPS_METADATA_TOO_MANY_UPDATES_HASH = HashingUtils::HashString("OpsMetadataTooManyUpdatesException"); static const int PARAMETER_VERSION_LABEL_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ParameterVersionLabelLimitExceeded"); static const int INVALID_RESOURCE_TYPE_HASH = HashingUtils::HashString("InvalidResourceType"); static const int OPS_ITEM_RELATED_ITEM_ASSOCIATION_NOT_FOUND_HASH = HashingUtils::HashString("OpsItemRelatedItemAssociationNotFoundException"); static const int DOCUMENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DocumentLimitExceeded"); static const int ASSOCIATION_ALREADY_EXISTS_HASH = HashingUtils::HashString("AssociationAlreadyExists"); static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextToken"); static const int UNSUPPORTED_OPERATING_SYSTEM_HASH = HashingUtils::HashString("UnsupportedOperatingSystem"); static const int AUTOMATION_EXECUTION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AutomationExecutionLimitExceededException"); static const int INVALID_DELETION_ID_HASH = HashingUtils::HashString("InvalidDeletionIdException"); static const int INVALID_TARGET_HASH = HashingUtils::HashString("InvalidTarget"); static const int INVALID_DOCUMENT_CONTENT_HASH = HashingUtils::HashString("InvalidDocumentContent"); static const int UNSUPPORTED_INVENTORY_ITEM_CONTEXT_HASH = HashingUtils::HashString("UnsupportedInventoryItemContextException"); static const int INVALID_POLICY_ATTRIBUTE_HASH = HashingUtils::HashString("InvalidPolicyAttributeException"); static const int AUTOMATION_DEFINITION_VERSION_NOT_FOUND_HASH = HashingUtils::HashString("AutomationDefinitionVersionNotFoundException"); static const int COMPLIANCE_TYPE_COUNT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ComplianceTypeCountLimitExceededException"); static const int PARAMETER_MAX_VERSION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ParameterMaxVersionLimitExceeded"); static const int OPS_ITEM_ACCESS_DENIED_HASH = HashingUtils::HashString("OpsItemAccessDeniedException"); static const int AUTOMATION_STEP_NOT_FOUND_HASH = HashingUtils::HashString("AutomationStepNotFoundException"); static const int RESOURCE_DATA_SYNC_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceDataSyncAlreadyExistsException"); static const int INVALID_RESULT_ATTRIBUTE_HASH = HashingUtils::HashString("InvalidResultAttributeException"); static const int UNSUPPORTED_FEATURE_REQUIRED_HASH = HashingUtils::HashString("UnsupportedFeatureRequiredException"); static const int STATUS_UNCHANGED_HASH = HashingUtils::HashString("StatusUnchanged"); static const int OPS_ITEM_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OpsItemLimitExceededException"); static const int DUPLICATE_INSTANCE_ID_HASH = HashingUtils::HashString("DuplicateInstanceId"); static const int DUPLICATE_DOCUMENT_CONTENT_HASH = HashingUtils::HashString("DuplicateDocumentContent"); static const int INVALID_OUTPUT_FOLDER_HASH = HashingUtils::HashString("InvalidOutputFolder"); static const int TOO_MANY_UPDATES_HASH = HashingUtils::HashString("TooManyUpdates"); static const int INVALID_DOCUMENT_SCHEMA_VERSION_HASH = HashingUtils::HashString("InvalidDocumentSchemaVersion"); static const int INVALID_AUTOMATION_STATUS_UPDATE_HASH = HashingUtils::HashString("InvalidAutomationStatusUpdateException"); static const int INVALID_AUTOMATION_EXECUTION_PARAMETERS_HASH = HashingUtils::HashString("InvalidAutomationExecutionParametersException"); static const int ITEM_CONTENT_MISMATCH_HASH = HashingUtils::HashString("ItemContentMismatchException"); static const int PARAMETER_PATTERN_MISMATCH_HASH = HashingUtils::HashString("ParameterPatternMismatchException"); static const int INVALID_INSTANCE_INFORMATION_FILTER_VALUE_HASH = HashingUtils::HashString("InvalidInstanceInformationFilterValue"); static const int INVALID_COMMAND_ID_HASH = HashingUtils::HashString("InvalidCommandId"); static const int INVALID_TARGET_MAPS_HASH = HashingUtils::HashString("InvalidTargetMaps"); static const int INVOCATION_DOES_NOT_EXIST_HASH = HashingUtils::HashString("InvocationDoesNotExist"); static const int TOTAL_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TotalSizeLimitExceededException"); static const int AUTOMATION_DEFINITION_NOT_FOUND_HASH = HashingUtils::HashString("AutomationDefinitionNotFoundException"); static const int CUSTOM_SCHEMA_COUNT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CustomSchemaCountLimitExceededException"); static const int INVALID_ALLOWED_PATTERN_HASH = HashingUtils::HashString("InvalidAllowedPatternException"); static const int INVALID_ROLE_HASH = HashingUtils::HashString("InvalidRole"); static const int INVALID_PARAMETERS_HASH = HashingUtils::HashString("InvalidParameters"); static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsError"); static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); static const int INVALID_ACTIVATION_HASH = HashingUtils::HashString("InvalidActivation"); static const int RESOURCE_DATA_SYNC_INVALID_CONFIGURATION_HASH = HashingUtils::HashString("ResourceDataSyncInvalidConfigurationException"); static const int INVALID_ASSOCIATION_HASH = HashingUtils::HashString("InvalidAssociation"); static const int HIERARCHY_TYPE_MISMATCH_HASH = HashingUtils::HashString("HierarchyTypeMismatchException"); static const int DOES_NOT_EXIST_HASH = HashingUtils::HashString("DoesNotExistException"); static const int INVALID_DOCUMENT_OPERATION_HASH = HashingUtils::HashString("InvalidDocumentOperation"); static const int OPS_METADATA_NOT_FOUND_HASH = HashingUtils::HashString("OpsMetadataNotFoundException"); static const int OPS_ITEM_NOT_FOUND_HASH = HashingUtils::HashString("OpsItemNotFoundException"); static const int INVALID_UPDATE_HASH = HashingUtils::HashString("InvalidUpdate"); static const int INVALID_FILTER_OPTION_HASH = HashingUtils::HashString("InvalidFilterOption"); static const int INVALID_ITEM_CONTENT_HASH = HashingUtils::HashString("InvalidItemContentException"); static const int TARGET_NOT_CONNECTED_HASH = HashingUtils::HashString("TargetNotConnected"); static const int DOCUMENT_ALREADY_EXISTS_HASH = HashingUtils::HashString("DocumentAlreadyExists"); static const int UNSUPPORTED_CALENDAR_HASH = HashingUtils::HashString("UnsupportedCalendarException"); static const int INVALID_DOCUMENT_VERSION_HASH = HashingUtils::HashString("InvalidDocumentVersion"); static const int INVALID_NOTIFICATION_CONFIG_HASH = HashingUtils::HashString("InvalidNotificationConfig"); static const int INVALID_TAG_HASH = HashingUtils::HashString("InvalidTag"); static const int INVALID_SCHEDULE_HASH = HashingUtils::HashString("InvalidSchedule"); static const int INVALID_ACTIVATION_ID_HASH = HashingUtils::HashString("InvalidActivationId"); static const int RESOURCE_DATA_SYNC_CONFLICT_HASH = HashingUtils::HashString("ResourceDataSyncConflictException"); static const int OPS_METADATA_KEY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OpsMetadataKeyLimitExceededException"); static const int INVALID_FILTER_HASH = HashingUtils::HashString("InvalidFilter"); static const int OPS_ITEM_INVALID_PARAMETER_HASH = HashingUtils::HashString("OpsItemInvalidParameterException"); static const int INVALID_INVENTORY_GROUP_HASH = HashingUtils::HashString("InvalidInventoryGroupException"); static const int POLICIES_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("PoliciesLimitExceededException"); static const int UNSUPPORTED_PARAMETER_TYPE_HASH = HashingUtils::HashString("UnsupportedParameterType"); static const int MAX_DOCUMENT_SIZE_EXCEEDED_HASH = HashingUtils::HashString("MaxDocumentSizeExceeded"); static const int INVALID_FILTER_KEY_HASH = HashingUtils::HashString("InvalidFilterKey"); static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotentParameterMismatch"); static const int UNSUPPORTED_PLATFORM_TYPE_HASH = HashingUtils::HashString("UnsupportedPlatformType"); static const int SERVICE_SETTING_NOT_FOUND_HASH = HashingUtils::HashString("ServiceSettingNotFound"); static const int DOCUMENT_PERMISSION_LIMIT_HASH = HashingUtils::HashString("DocumentPermissionLimit"); /* The if-else chains in this file are converted into a jump table by the compiler, which allows constant time lookup. The chain has been broken into helper functions because MSVC has a maximum of 122 chained if-else blocks. */ static bool GetErrorForNameHelper0(int hashCode, AWSError& error) { if (hashCode == INVALID_OUTPUT_LOCATION_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_OUTPUT_LOCATION), false); return true; } else if (hashCode == RESOURCE_DATA_SYNC_COUNT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::RESOURCE_DATA_SYNC_COUNT_EXCEEDED), false); return true; } else if (hashCode == PARAMETER_VERSION_NOT_FOUND_HASH) { error = AWSError(static_cast(SSMErrors::PARAMETER_VERSION_NOT_FOUND), false); return true; } else if (hashCode == INVALID_POLICY_TYPE_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_POLICY_TYPE), false); return true; } else if (hashCode == INVALID_AGGREGATOR_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_AGGREGATOR), false); return true; } else if (hashCode == INVALID_INVENTORY_REQUEST_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_INVENTORY_REQUEST), false); return true; } else if (hashCode == DUPLICATE_DOCUMENT_VERSION_NAME_HASH) { error = AWSError(static_cast(SSMErrors::DUPLICATE_DOCUMENT_VERSION_NAME), false); return true; } else if (hashCode == OPS_METADATA_INVALID_ARGUMENT_HASH) { error = AWSError(static_cast(SSMErrors::OPS_METADATA_INVALID_ARGUMENT), false); return true; } else if (hashCode == INVALID_TYPE_NAME_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_TYPE_NAME), false); return true; } else if (hashCode == UNSUPPORTED_INVENTORY_SCHEMA_VERSION_HASH) { error = AWSError(static_cast(SSMErrors::UNSUPPORTED_INVENTORY_SCHEMA_VERSION), false); return true; } else if (hashCode == ASSOCIATION_DOES_NOT_EXIST_HASH) { error = AWSError(static_cast(SSMErrors::ASSOCIATION_DOES_NOT_EXIST), false); return true; } else if (hashCode == ASSOCIATION_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::ASSOCIATION_LIMIT_EXCEEDED), false); return true; } else if (hashCode == INVALID_OPTION_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_OPTION), false); return true; } else if (hashCode == PARAMETER_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::PARAMETER_LIMIT_EXCEEDED), false); return true; } else if (hashCode == SUB_TYPE_COUNT_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::SUB_TYPE_COUNT_LIMIT_EXCEEDED), false); return true; } else if (hashCode == ASSOCIATION_VERSION_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::ASSOCIATION_VERSION_LIMIT_EXCEEDED), false); return true; } else if (hashCode == INVALID_PERMISSION_TYPE_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_PERMISSION_TYPE), false); return true; } else if (hashCode == INCOMPATIBLE_POLICY_HASH) { error = AWSError(static_cast(SSMErrors::INCOMPATIBLE_POLICY), false); return true; } else if (hashCode == INVALID_ASSOCIATION_VERSION_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_ASSOCIATION_VERSION), false); return true; } else if (hashCode == OPS_ITEM_RELATED_ITEM_ALREADY_EXISTS_HASH) { error = AWSError(static_cast(SSMErrors::OPS_ITEM_RELATED_ITEM_ALREADY_EXISTS), false); return true; } else if (hashCode == PARAMETER_NOT_FOUND_HASH) { error = AWSError(static_cast(SSMErrors::PARAMETER_NOT_FOUND), false); return true; } else if (hashCode == INVALID_DOCUMENT_TYPE_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_DOCUMENT_TYPE), false); return true; } else if (hashCode == RESOURCE_POLICY_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::RESOURCE_POLICY_LIMIT_EXCEEDED), false); return true; } else if (hashCode == RESOURCE_POLICY_CONFLICT_HASH) { error = AWSError(static_cast(SSMErrors::RESOURCE_POLICY_CONFLICT), false); return true; } else if (hashCode == PARAMETER_ALREADY_EXISTS_HASH) { error = AWSError(static_cast(SSMErrors::PARAMETER_ALREADY_EXISTS), false); return true; } else if (hashCode == HIERARCHY_LEVEL_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::HIERARCHY_LEVEL_LIMIT_EXCEEDED), false); return true; } else if (hashCode == DOCUMENT_VERSION_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::DOCUMENT_VERSION_LIMIT_EXCEEDED), false); return true; } else if (hashCode == RESOURCE_DATA_SYNC_NOT_FOUND_HASH) { error = AWSError(static_cast(SSMErrors::RESOURCE_DATA_SYNC_NOT_FOUND), false); return true; } else if (hashCode == INVALID_FILTER_VALUE_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_FILTER_VALUE), false); return true; } else if (hashCode == OPS_ITEM_ALREADY_EXISTS_HASH) { error = AWSError(static_cast(SSMErrors::OPS_ITEM_ALREADY_EXISTS), false); return true; } else if (hashCode == INVALID_DELETE_INVENTORY_PARAMETERS_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_DELETE_INVENTORY_PARAMETERS), false); return true; } else if (hashCode == OPS_METADATA_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::OPS_METADATA_LIMIT_EXCEEDED), false); return true; } else if (hashCode == FEATURE_NOT_AVAILABLE_HASH) { error = AWSError(static_cast(SSMErrors::FEATURE_NOT_AVAILABLE), false); return true; } else if (hashCode == INVALID_PLUGIN_NAME_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_PLUGIN_NAME), false); return true; } else if (hashCode == INVALID_DOCUMENT_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_DOCUMENT), false); return true; } else if (hashCode == INVALID_AUTOMATION_SIGNAL_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_AUTOMATION_SIGNAL), false); return true; } else if (hashCode == RESOURCE_POLICY_INVALID_PARAMETER_HASH) { error = AWSError(static_cast(SSMErrors::RESOURCE_POLICY_INVALID_PARAMETER), false); return true; } else if (hashCode == AUTOMATION_DEFINITION_NOT_APPROVED_HASH) { error = AWSError(static_cast(SSMErrors::AUTOMATION_DEFINITION_NOT_APPROVED), false); return true; } else if (hashCode == AUTOMATION_EXECUTION_NOT_FOUND_HASH) { error = AWSError(static_cast(SSMErrors::AUTOMATION_EXECUTION_NOT_FOUND), false); return true; } else if (hashCode == INVALID_INVENTORY_ITEM_CONTEXT_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_INVENTORY_ITEM_CONTEXT), false); return true; } else if (hashCode == RESOURCE_IN_USE_HASH) { error = AWSError(static_cast(SSMErrors::RESOURCE_IN_USE), false); return true; } else if (hashCode == ASSOCIATION_EXECUTION_DOES_NOT_EXIST_HASH) { error = AWSError(static_cast(SSMErrors::ASSOCIATION_EXECUTION_DOES_NOT_EXIST), false); return true; } else if (hashCode == INVALID_RESOURCE_ID_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_RESOURCE_ID), false); return true; } else if (hashCode == INVALID_INSTANCE_ID_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_INSTANCE_ID), false); return true; } else if (hashCode == ASSOCIATED_INSTANCES_HASH) { error = AWSError(static_cast(SSMErrors::ASSOCIATED_INSTANCES), false); return true; } else if (hashCode == OPS_METADATA_ALREADY_EXISTS_HASH) { error = AWSError(static_cast(SSMErrors::OPS_METADATA_ALREADY_EXISTS), false); return true; } else if (hashCode == TARGET_IN_USE_HASH) { error = AWSError(static_cast(SSMErrors::TARGET_IN_USE), false); return true; } else if (hashCode == INVALID_KEY_ID_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_KEY_ID), false); return true; } else if (hashCode == ALREADY_EXISTS_HASH) { error = AWSError(static_cast(SSMErrors::ALREADY_EXISTS), false); return true; } else if (hashCode == ITEM_SIZE_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::ITEM_SIZE_LIMIT_EXCEEDED), false); return true; } else if (hashCode == OPS_METADATA_TOO_MANY_UPDATES_HASH) { error = AWSError(static_cast(SSMErrors::OPS_METADATA_TOO_MANY_UPDATES), false); return true; } else if (hashCode == PARAMETER_VERSION_LABEL_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::PARAMETER_VERSION_LABEL_LIMIT_EXCEEDED), false); return true; } else if (hashCode == INVALID_RESOURCE_TYPE_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_RESOURCE_TYPE), false); return true; } else if (hashCode == OPS_ITEM_RELATED_ITEM_ASSOCIATION_NOT_FOUND_HASH) { error = AWSError(static_cast(SSMErrors::OPS_ITEM_RELATED_ITEM_ASSOCIATION_NOT_FOUND), false); return true; } else if (hashCode == DOCUMENT_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::DOCUMENT_LIMIT_EXCEEDED), false); return true; } else if (hashCode == ASSOCIATION_ALREADY_EXISTS_HASH) { error = AWSError(static_cast(SSMErrors::ASSOCIATION_ALREADY_EXISTS), false); return true; } else if (hashCode == INVALID_NEXT_TOKEN_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_NEXT_TOKEN), false); return true; } else if (hashCode == UNSUPPORTED_OPERATING_SYSTEM_HASH) { error = AWSError(static_cast(SSMErrors::UNSUPPORTED_OPERATING_SYSTEM), false); return true; } else if (hashCode == AUTOMATION_EXECUTION_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::AUTOMATION_EXECUTION_LIMIT_EXCEEDED), false); return true; } else if (hashCode == INVALID_DELETION_ID_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_DELETION_ID), false); return true; } else if (hashCode == INVALID_TARGET_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_TARGET), false); return true; } else if (hashCode == INVALID_DOCUMENT_CONTENT_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_DOCUMENT_CONTENT), false); return true; } else if (hashCode == UNSUPPORTED_INVENTORY_ITEM_CONTEXT_HASH) { error = AWSError(static_cast(SSMErrors::UNSUPPORTED_INVENTORY_ITEM_CONTEXT), false); return true; } else if (hashCode == INVALID_POLICY_ATTRIBUTE_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_POLICY_ATTRIBUTE), false); return true; } else if (hashCode == AUTOMATION_DEFINITION_VERSION_NOT_FOUND_HASH) { error = AWSError(static_cast(SSMErrors::AUTOMATION_DEFINITION_VERSION_NOT_FOUND), false); return true; } else if (hashCode == COMPLIANCE_TYPE_COUNT_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::COMPLIANCE_TYPE_COUNT_LIMIT_EXCEEDED), false); return true; } else if (hashCode == PARAMETER_MAX_VERSION_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::PARAMETER_MAX_VERSION_LIMIT_EXCEEDED), false); return true; } else if (hashCode == OPS_ITEM_ACCESS_DENIED_HASH) { error = AWSError(static_cast(SSMErrors::OPS_ITEM_ACCESS_DENIED), false); return true; } else if (hashCode == AUTOMATION_STEP_NOT_FOUND_HASH) { error = AWSError(static_cast(SSMErrors::AUTOMATION_STEP_NOT_FOUND), false); return true; } else if (hashCode == RESOURCE_DATA_SYNC_ALREADY_EXISTS_HASH) { error = AWSError(static_cast(SSMErrors::RESOURCE_DATA_SYNC_ALREADY_EXISTS), false); return true; } else if (hashCode == INVALID_RESULT_ATTRIBUTE_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_RESULT_ATTRIBUTE), false); return true; } else if (hashCode == UNSUPPORTED_FEATURE_REQUIRED_HASH) { error = AWSError(static_cast(SSMErrors::UNSUPPORTED_FEATURE_REQUIRED), false); return true; } else if (hashCode == STATUS_UNCHANGED_HASH) { error = AWSError(static_cast(SSMErrors::STATUS_UNCHANGED), false); return true; } else if (hashCode == OPS_ITEM_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::OPS_ITEM_LIMIT_EXCEEDED), false); return true; } else if (hashCode == DUPLICATE_INSTANCE_ID_HASH) { error = AWSError(static_cast(SSMErrors::DUPLICATE_INSTANCE_ID), false); return true; } else if (hashCode == DUPLICATE_DOCUMENT_CONTENT_HASH) { error = AWSError(static_cast(SSMErrors::DUPLICATE_DOCUMENT_CONTENT), false); return true; } else if (hashCode == INVALID_OUTPUT_FOLDER_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_OUTPUT_FOLDER), false); return true; } else if (hashCode == TOO_MANY_UPDATES_HASH) { error = AWSError(static_cast(SSMErrors::TOO_MANY_UPDATES), false); return true; } else if (hashCode == INVALID_DOCUMENT_SCHEMA_VERSION_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_DOCUMENT_SCHEMA_VERSION), false); return true; } else if (hashCode == INVALID_AUTOMATION_STATUS_UPDATE_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_AUTOMATION_STATUS_UPDATE), false); return true; } else if (hashCode == INVALID_AUTOMATION_EXECUTION_PARAMETERS_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_AUTOMATION_EXECUTION_PARAMETERS), false); return true; } else if (hashCode == ITEM_CONTENT_MISMATCH_HASH) { error = AWSError(static_cast(SSMErrors::ITEM_CONTENT_MISMATCH), false); return true; } else if (hashCode == PARAMETER_PATTERN_MISMATCH_HASH) { error = AWSError(static_cast(SSMErrors::PARAMETER_PATTERN_MISMATCH), false); return true; } else if (hashCode == INVALID_INSTANCE_INFORMATION_FILTER_VALUE_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_INSTANCE_INFORMATION_FILTER_VALUE), false); return true; } else if (hashCode == INVALID_COMMAND_ID_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_COMMAND_ID), false); return true; } else if (hashCode == INVALID_TARGET_MAPS_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_TARGET_MAPS), false); return true; } else if (hashCode == INVOCATION_DOES_NOT_EXIST_HASH) { error = AWSError(static_cast(SSMErrors::INVOCATION_DOES_NOT_EXIST), false); return true; } else if (hashCode == TOTAL_SIZE_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::TOTAL_SIZE_LIMIT_EXCEEDED), false); return true; } else if (hashCode == AUTOMATION_DEFINITION_NOT_FOUND_HASH) { error = AWSError(static_cast(SSMErrors::AUTOMATION_DEFINITION_NOT_FOUND), false); return true; } else if (hashCode == CUSTOM_SCHEMA_COUNT_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::CUSTOM_SCHEMA_COUNT_LIMIT_EXCEEDED), false); return true; } else if (hashCode == INVALID_ALLOWED_PATTERN_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_ALLOWED_PATTERN), false); return true; } else if (hashCode == INVALID_ROLE_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_ROLE), false); return true; } else if (hashCode == INVALID_PARAMETERS_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_PARAMETERS), false); return true; } else if (hashCode == TOO_MANY_TAGS_HASH) { error = AWSError(static_cast(SSMErrors::TOO_MANY_TAGS), false); return true; } else if (hashCode == RESOURCE_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::RESOURCE_LIMIT_EXCEEDED), false); return true; } else if (hashCode == INVALID_ACTIVATION_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_ACTIVATION), false); return true; } else if (hashCode == RESOURCE_DATA_SYNC_INVALID_CONFIGURATION_HASH) { error = AWSError(static_cast(SSMErrors::RESOURCE_DATA_SYNC_INVALID_CONFIGURATION), false); return true; } else if (hashCode == INVALID_ASSOCIATION_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_ASSOCIATION), false); return true; } else if (hashCode == HIERARCHY_TYPE_MISMATCH_HASH) { error = AWSError(static_cast(SSMErrors::HIERARCHY_TYPE_MISMATCH), false); return true; } else if (hashCode == DOES_NOT_EXIST_HASH) { error = AWSError(static_cast(SSMErrors::DOES_NOT_EXIST), false); return true; } else if (hashCode == INVALID_DOCUMENT_OPERATION_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_DOCUMENT_OPERATION), false); return true; } else if (hashCode == OPS_METADATA_NOT_FOUND_HASH) { error = AWSError(static_cast(SSMErrors::OPS_METADATA_NOT_FOUND), false); return true; } else if (hashCode == OPS_ITEM_NOT_FOUND_HASH) { error = AWSError(static_cast(SSMErrors::OPS_ITEM_NOT_FOUND), false); return true; } else if (hashCode == INVALID_UPDATE_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_UPDATE), false); return true; } else if (hashCode == INVALID_FILTER_OPTION_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_FILTER_OPTION), false); return true; } else if (hashCode == INVALID_ITEM_CONTENT_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_ITEM_CONTENT), false); return true; } else if (hashCode == TARGET_NOT_CONNECTED_HASH) { error = AWSError(static_cast(SSMErrors::TARGET_NOT_CONNECTED), false); return true; } else if (hashCode == DOCUMENT_ALREADY_EXISTS_HASH) { error = AWSError(static_cast(SSMErrors::DOCUMENT_ALREADY_EXISTS), false); return true; } else if (hashCode == UNSUPPORTED_CALENDAR_HASH) { error = AWSError(static_cast(SSMErrors::UNSUPPORTED_CALENDAR), false); return true; } else if (hashCode == INVALID_DOCUMENT_VERSION_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_DOCUMENT_VERSION), false); return true; } else if (hashCode == INVALID_NOTIFICATION_CONFIG_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_NOTIFICATION_CONFIG), false); return true; } else if (hashCode == INVALID_TAG_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_TAG), false); return true; } else if (hashCode == INVALID_SCHEDULE_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_SCHEDULE), false); return true; } else if (hashCode == INVALID_ACTIVATION_ID_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_ACTIVATION_ID), false); return true; } else if (hashCode == RESOURCE_DATA_SYNC_CONFLICT_HASH) { error = AWSError(static_cast(SSMErrors::RESOURCE_DATA_SYNC_CONFLICT), false); return true; } else if (hashCode == OPS_METADATA_KEY_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::OPS_METADATA_KEY_LIMIT_EXCEEDED), false); return true; } else if (hashCode == INVALID_FILTER_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_FILTER), false); return true; } else if (hashCode == OPS_ITEM_INVALID_PARAMETER_HASH) { error = AWSError(static_cast(SSMErrors::OPS_ITEM_INVALID_PARAMETER), false); return true; } else if (hashCode == INVALID_INVENTORY_GROUP_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_INVENTORY_GROUP), false); return true; } else if (hashCode == POLICIES_LIMIT_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::POLICIES_LIMIT_EXCEEDED), false); return true; } else if (hashCode == UNSUPPORTED_PARAMETER_TYPE_HASH) { error = AWSError(static_cast(SSMErrors::UNSUPPORTED_PARAMETER_TYPE), false); return true; } else if (hashCode == MAX_DOCUMENT_SIZE_EXCEEDED_HASH) { error = AWSError(static_cast(SSMErrors::MAX_DOCUMENT_SIZE_EXCEEDED), false); return true; } return false; } static bool GetErrorForNameHelper1(int hashCode, AWSError& error) { if (hashCode == INVALID_FILTER_KEY_HASH) { error = AWSError(static_cast(SSMErrors::INVALID_FILTER_KEY), false); return true; } else if (hashCode == IDEMPOTENT_PARAMETER_MISMATCH_HASH) { error = AWSError(static_cast(SSMErrors::IDEMPOTENT_PARAMETER_MISMATCH), false); return true; } else if (hashCode == UNSUPPORTED_PLATFORM_TYPE_HASH) { error = AWSError(static_cast(SSMErrors::UNSUPPORTED_PLATFORM_TYPE), false); return true; } else if (hashCode == SERVICE_SETTING_NOT_FOUND_HASH) { error = AWSError(static_cast(SSMErrors::SERVICE_SETTING_NOT_FOUND), false); return true; } else if (hashCode == DOCUMENT_PERMISSION_LIMIT_HASH) { error = AWSError(static_cast(SSMErrors::DOCUMENT_PERMISSION_LIMIT), false); return true; } return false; } AWSError GetErrorForName(const char* errorName) { int hashCode = HashingUtils::HashString(errorName); AWSError error; if (GetErrorForNameHelper0(hashCode, error)) { return error; } else if (GetErrorForNameHelper1(hashCode, error)) { return error; } return AWSError(CoreErrors::UNKNOWN, false); } } // namespace SSMErrorMapper } // namespace SSM } // namespace Aws