module Network.AWS.CloudDirectory.Types
(
cloudDirectory
, _UnsupportedIndexTypeException
, _NotIndexException
, _ValidationException
, _AccessDeniedException
, _FacetAlreadyExistsException
, _InvalidSchemaDocException
, _InvalidAttachmentException
, _CannotListParentOfRootException
, _NotPolicyException
, _InvalidTaggingRequestException
, _InvalidFacetUpdateException
, _InvalidRuleException
, _SchemaAlreadyPublishedException
, _DirectoryAlreadyExistsException
, _DirectoryNotDisabledException
, _BatchWriteException
, _DirectoryNotEnabledException
, _FacetInUseException
, _FacetValidationException
, _StillContainsLinksException
, _NotNodeException
, _InvalidNextTokenException
, _ObjectAlreadyDetachedException
, _LinkNameAlreadyInUseException
, _InternalServiceException
, _SchemaAlreadyExistsException
, _IndexedAttributeMissingException
, _DirectoryDeletedException
, _RetryableConflictException
, _InvalidARNException
, _ResourceNotFoundException
, _FacetNotFoundException
, _LimitExceededException
, _ObjectNotDetachedException
, BatchReadExceptionType (..)
, ConsistencyLevel (..)
, DirectoryState (..)
, FacetAttributeType (..)
, ObjectType (..)
, RangeMode (..)
, RequiredAttributeBehavior (..)
, RuleType (..)
, UpdateActionType (..)
, AttributeKey
, attributeKey
, akSchemaARN
, akFacetName
, akName
, AttributeKeyAndValue
, attributeKeyAndValue
, akavKey
, akavValue
, AttributeNameAndValue
, attributeNameAndValue
, anavAttributeName
, anavValue
, BatchAddFacetToObject
, batchAddFacetToObject
, baftoSchemaFacet
, baftoObjectAttributeList
, baftoObjectReference
, BatchAddFacetToObjectResponse
, batchAddFacetToObjectResponse
, BatchAttachObject
, batchAttachObject
, baoParentReference
, baoChildReference
, baoLinkName
, BatchAttachObjectResponse
, batchAttachObjectResponse
, baoAttachedObjectIdentifier
, BatchAttachPolicy
, batchAttachPolicy
, bapPolicyReference
, bapObjectReference
, BatchAttachPolicyResponse
, batchAttachPolicyResponse
, BatchAttachToIndex
, batchAttachToIndex
, batiIndexReference
, batiTargetReference
, BatchAttachToIndexResponse
, batchAttachToIndexResponse
, batiAttachedObjectIdentifier
, BatchAttachTypedLink
, batchAttachTypedLink
, batlSourceObjectReference
, batlTargetObjectReference
, batlTypedLinkFacet
, batlAttributes
, BatchAttachTypedLinkResponse
, batchAttachTypedLinkResponse
, batlTypedLinkSpecifier
, BatchCreateIndex
, batchCreateIndex
, bciParentReference
, bciLinkName
, bciBatchReferenceName
, bciOrderedIndexedAttributeList
, bciIsUnique
, BatchCreateIndexResponse
, batchCreateIndexResponse
, bciObjectIdentifier
, BatchCreateObject
, batchCreateObject
, bcoSchemaFacet
, bcoObjectAttributeList
, bcoParentReference
, bcoLinkName
, bcoBatchReferenceName
, BatchCreateObjectResponse
, batchCreateObjectResponse
, bcoObjectIdentifier
, BatchDeleteObject
, batchDeleteObject
, bdoObjectReference
, BatchDeleteObjectResponse
, batchDeleteObjectResponse
, BatchDetachFromIndex
, batchDetachFromIndex
, bdfiIndexReference
, bdfiTargetReference
, BatchDetachFromIndexResponse
, batchDetachFromIndexResponse
, bdfiDetachedObjectIdentifier
, BatchDetachObject
, batchDetachObject
, bdoParentReference
, bdoLinkName
, bdoBatchReferenceName
, BatchDetachObjectResponse
, batchDetachObjectResponse
, bdoDetachedObjectIdentifier
, BatchDetachPolicy
, batchDetachPolicy
, bdpPolicyReference
, bdpObjectReference
, BatchDetachPolicyResponse
, batchDetachPolicyResponse
, BatchDetachTypedLink
, batchDetachTypedLink
, bdtlTypedLinkSpecifier
, BatchDetachTypedLinkResponse
, batchDetachTypedLinkResponse
, BatchGetObjectInformation
, batchGetObjectInformation
, bgoiObjectReference
, BatchGetObjectInformationResponse
, batchGetObjectInformationResponse
, bgoiObjectIdentifier
, bgoiSchemaFacets
, BatchListAttachedIndices
, batchListAttachedIndices
, blaisNextToken
, blaisMaxResults
, blaisTargetReference
, BatchListAttachedIndicesResponse
, batchListAttachedIndicesResponse
, blaiIndexAttachments
, blaiNextToken
, BatchListIncomingTypedLinks
, batchListIncomingTypedLinks
, blitlsFilterAttributeRanges
, blitlsNextToken
, blitlsFilterTypedLink
, blitlsMaxResults
, blitlsObjectReference
, BatchListIncomingTypedLinksResponse
, batchListIncomingTypedLinksResponse
, blitlLinkSpecifiers
, blitlNextToken
, BatchListIndex
, batchListIndex
, batRangesOnIndexedValues
, batNextToken
, batMaxResults
, batIndexReference
, BatchListIndexResponse
, batchListIndexResponse
, bliIndexAttachments
, bliNextToken
, BatchListObjectAttributes
, batchListObjectAttributes
, bloaFacetFilter
, bloaNextToken
, bloaMaxResults
, bloaObjectReference
, BatchListObjectAttributesResponse
, batchListObjectAttributesResponse
, bNextToken
, bAttributes
, BatchListObjectChildren
, batchListObjectChildren
, bloclNextToken
, bloclMaxResults
, bloclObjectReference
, BatchListObjectChildrenResponse
, batchListObjectChildrenResponse
, blocChildren
, blocNextToken
, BatchListObjectParentPaths
, batchListObjectParentPaths
, bloppsNextToken
, bloppsMaxResults
, bloppsObjectReference
, BatchListObjectParentPathsResponse
, batchListObjectParentPathsResponse
, bloppPathToObjectIdentifiersList
, bloppNextToken
, BatchListObjectPolicies
, batchListObjectPolicies
, blopsNextToken
, blopsMaxResults
, blopsObjectReference
, BatchListObjectPoliciesResponse
, batchListObjectPoliciesResponse
, blopNextToken
, blopAttachedPolicyIds
, BatchListOutgoingTypedLinks
, batchListOutgoingTypedLinks
, blotlsFilterAttributeRanges
, blotlsNextToken
, blotlsFilterTypedLink
, blotlsMaxResults
, blotlsObjectReference
, BatchListOutgoingTypedLinksResponse
, batchListOutgoingTypedLinksResponse
, blotlTypedLinkSpecifiers
, blotlNextToken
, BatchListPolicyAttachments
, batchListPolicyAttachments
, blpasNextToken
, blpasMaxResults
, blpasPolicyReference
, BatchListPolicyAttachmentsResponse
, batchListPolicyAttachmentsResponse
, blpaObjectIdentifiers
, blpaNextToken
, BatchLookupPolicy
, batchLookupPolicy
, blplNextToken
, blplMaxResults
, blplObjectReference
, BatchLookupPolicyResponse
, batchLookupPolicyResponse
, blpNextToken
, blpPolicyToPathList
, BatchReadException
, batchReadException
, breType
, breMessage
, BatchReadOperation
, batchReadOperation
, broListIndex
, broGetObjectInformation
, broListAttachedIndices
, broLookupPolicy
, broListObjectParentPaths
, broListObjectAttributes
, broListIncomingTypedLinks
, broListObjectChildren
, broListPolicyAttachments
, broListOutgoingTypedLinks
, broListObjectPolicies
, BatchReadOperationResponse
, batchReadOperationResponse
, broExceptionResponse
, broSuccessfulResponse
, BatchReadSuccessfulResponse
, batchReadSuccessfulResponse
, brsListIndex
, brsGetObjectInformation
, brsListAttachedIndices
, brsLookupPolicy
, brsListObjectParentPaths
, brsListObjectAttributes
, brsListIncomingTypedLinks
, brsListObjectChildren
, brsListPolicyAttachments
, brsListOutgoingTypedLinks
, brsListObjectPolicies
, BatchRemoveFacetFromObject
, batchRemoveFacetFromObject
, brffoSchemaFacet
, brffoObjectReference
, BatchRemoveFacetFromObjectResponse
, batchRemoveFacetFromObjectResponse
, BatchUpdateObjectAttributes
, batchUpdateObjectAttributes
, buoaObjectReference
, buoaAttributeUpdates
, BatchUpdateObjectAttributesResponse
, batchUpdateObjectAttributesResponse
, buoaObjectIdentifier
, BatchWriteOperation
, batchWriteOperation
, bDeleteObject
, bDetachFromIndex
, bRemoveFacetFromObject
, bAttachObject
, bCreateObject
, bAttachTypedLink
, bDetachPolicy
, bCreateIndex
, bDetachObject
, bAddFacetToObject
, bDetachTypedLink
, bUpdateObjectAttributes
, bAttachPolicy
, bAttachToIndex
, BatchWriteOperationResponse
, batchWriteOperationResponse
, bwoDeleteObject
, bwoDetachFromIndex
, bwoRemoveFacetFromObject
, bwoAttachObject
, bwoCreateObject
, bwoAttachTypedLink
, bwoDetachPolicy
, bwoCreateIndex
, bwoDetachObject
, bwoAddFacetToObject
, bwoDetachTypedLink
, bwoUpdateObjectAttributes
, bwoAttachPolicy
, bwoAttachToIndex
, Directory
, directory
, dDirectoryARN
, dState
, dName
, dCreationDateTime
, Facet
, facet
, fObjectType
, fName
, FacetAttribute
, facetAttribute
, faAttributeReference
, faAttributeDefinition
, faRequiredBehavior
, faName
, FacetAttributeDefinition
, facetAttributeDefinition
, fadRules
, fadDefaultValue
, fadIsImmutable
, fadType
, FacetAttributeReference
, facetAttributeReference
, farTargetFacetName
, farTargetAttributeName
, FacetAttributeUpdate
, facetAttributeUpdate
, fauAttribute
, fauAction
, IndexAttachment
, indexAttachment
, iaIndexedAttributes
, iaObjectIdentifier
, ObjectAttributeAction
, objectAttributeAction
, oaaObjectAttributeActionType
, oaaObjectAttributeUpdateValue
, ObjectAttributeRange
, objectAttributeRange
, oarRange
, oarAttributeKey
, ObjectAttributeUpdate
, objectAttributeUpdate
, oauObjectAttributeAction
, oauObjectAttributeKey
, ObjectReference
, objectReference
, orSelector
, PathToObjectIdentifiers
, pathToObjectIdentifiers
, ptoiObjectIdentifiers
, ptoiPath
, PolicyAttachment
, policyAttachment
, paPolicyId
, paPolicyType
, paObjectIdentifier
, PolicyToPath
, policyToPath
, ptpPath
, ptpPolicies
, Rule
, rule
, rParameters
, rType
, SchemaFacet
, schemaFacet
, sfFacetName
, sfSchemaARN
, Tag
, tag
, tagValue
, tagKey
, TypedAttributeValue
, typedAttributeValue
, tavBinaryValue
, tavDatetimeValue
, tavNumberValue
, tavStringValue
, tavBooleanValue
, TypedAttributeValueRange
, typedAttributeValueRange
, tavrEndValue
, tavrStartValue
, tavrStartMode
, tavrEndMode
, TypedLinkAttributeDefinition
, typedLinkAttributeDefinition
, tladRules
, tladDefaultValue
, tladIsImmutable
, tladName
, tladType
, tladRequiredBehavior
, TypedLinkAttributeRange
, typedLinkAttributeRange
, tlarAttributeName
, tlarRange
, TypedLinkFacet
, typedLinkFacet
, tlfName
, tlfAttributes
, tlfIdentityAttributeOrder
, TypedLinkFacetAttributeUpdate
, typedLinkFacetAttributeUpdate
, tlfauAttribute
, tlfauAction
, TypedLinkSchemaAndFacetName
, typedLinkSchemaAndFacetName
, tlsafnSchemaARN
, tlsafnTypedLinkName
, TypedLinkSpecifier
, typedLinkSpecifier
, tlsTypedLinkFacet
, tlsSourceObjectReference
, tlsTargetObjectReference
, tlsIdentityAttributeValues
) where
import Network.AWS.CloudDirectory.Types.Product
import Network.AWS.CloudDirectory.Types.Sum
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Sign.V4
cloudDirectory :: Service
cloudDirectory =
Service
{ _svcAbbrev = "CloudDirectory"
, _svcSigner = v4
, _svcPrefix = "clouddirectory"
, _svcVersion = "2016-05-10"
, _svcEndpoint = defaultEndpoint cloudDirectory
, _svcTimeout = Just 70
, _svcCheck = statusSuccess
, _svcError = parseJSONError "CloudDirectory"
, _svcRetry = retry
}
where
retry =
Exponential
{ _retryBase = 5.0e-2
, _retryGrowth = 2
, _retryAttempts = 5
, _retryCheck = check
}
check e
| has (hasCode "ThrottledException" . hasStatus 400) e =
Just "throttled_exception"
| has (hasStatus 429) e = Just "too_many_requests"
| has (hasCode "ThrottlingException" . hasStatus 400) e =
Just "throttling_exception"
| has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"
| has (hasStatus 504) e = Just "gateway_timeout"
| has (hasStatus 502) e = Just "bad_gateway"
| has (hasStatus 503) e = Just "service_unavailable"
| has (hasStatus 500) e = Just "general_server_error"
| has (hasStatus 509) e = Just "limit_exceeded"
| otherwise = Nothing
_UnsupportedIndexTypeException :: AsError a => Getting (First ServiceError) a ServiceError
_UnsupportedIndexTypeException =
_MatchServiceError cloudDirectory "UnsupportedIndexTypeException" .
hasStatus 400
_NotIndexException :: AsError a => Getting (First ServiceError) a ServiceError
_NotIndexException =
_MatchServiceError cloudDirectory "NotIndexException" . hasStatus 400
_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError
_ValidationException =
_MatchServiceError cloudDirectory "ValidationException" . hasStatus 400
_AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
_AccessDeniedException =
_MatchServiceError cloudDirectory "AccessDeniedException" . hasStatus 403
_FacetAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError
_FacetAlreadyExistsException =
_MatchServiceError cloudDirectory "FacetAlreadyExistsException" .
hasStatus 400
_InvalidSchemaDocException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidSchemaDocException =
_MatchServiceError cloudDirectory "InvalidSchemaDocException" . hasStatus 400
_InvalidAttachmentException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidAttachmentException =
_MatchServiceError cloudDirectory "InvalidAttachmentException" . hasStatus 400
_CannotListParentOfRootException :: AsError a => Getting (First ServiceError) a ServiceError
_CannotListParentOfRootException =
_MatchServiceError cloudDirectory "CannotListParentOfRootException" .
hasStatus 400
_NotPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
_NotPolicyException =
_MatchServiceError cloudDirectory "NotPolicyException" . hasStatus 400
_InvalidTaggingRequestException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidTaggingRequestException =
_MatchServiceError cloudDirectory "InvalidTaggingRequestException" .
hasStatus 400
_InvalidFacetUpdateException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidFacetUpdateException =
_MatchServiceError cloudDirectory "InvalidFacetUpdateException" .
hasStatus 400
_InvalidRuleException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidRuleException =
_MatchServiceError cloudDirectory "InvalidRuleException" . hasStatus 400
_SchemaAlreadyPublishedException :: AsError a => Getting (First ServiceError) a ServiceError
_SchemaAlreadyPublishedException =
_MatchServiceError cloudDirectory "SchemaAlreadyPublishedException" .
hasStatus 400
_DirectoryAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError
_DirectoryAlreadyExistsException =
_MatchServiceError cloudDirectory "DirectoryAlreadyExistsException" .
hasStatus 400
_DirectoryNotDisabledException :: AsError a => Getting (First ServiceError) a ServiceError
_DirectoryNotDisabledException =
_MatchServiceError cloudDirectory "DirectoryNotDisabledException" .
hasStatus 400
_BatchWriteException :: AsError a => Getting (First ServiceError) a ServiceError
_BatchWriteException = _MatchServiceError cloudDirectory "BatchWriteException"
_DirectoryNotEnabledException :: AsError a => Getting (First ServiceError) a ServiceError
_DirectoryNotEnabledException =
_MatchServiceError cloudDirectory "DirectoryNotEnabledException" .
hasStatus 400
_FacetInUseException :: AsError a => Getting (First ServiceError) a ServiceError
_FacetInUseException =
_MatchServiceError cloudDirectory "FacetInUseException" . hasStatus 400
_FacetValidationException :: AsError a => Getting (First ServiceError) a ServiceError
_FacetValidationException =
_MatchServiceError cloudDirectory "FacetValidationException" . hasStatus 400
_StillContainsLinksException :: AsError a => Getting (First ServiceError) a ServiceError
_StillContainsLinksException =
_MatchServiceError cloudDirectory "StillContainsLinksException" .
hasStatus 400
_NotNodeException :: AsError a => Getting (First ServiceError) a ServiceError
_NotNodeException =
_MatchServiceError cloudDirectory "NotNodeException" . hasStatus 400
_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidNextTokenException =
_MatchServiceError cloudDirectory "InvalidNextTokenException" . hasStatus 400
_ObjectAlreadyDetachedException :: AsError a => Getting (First ServiceError) a ServiceError
_ObjectAlreadyDetachedException =
_MatchServiceError cloudDirectory "ObjectAlreadyDetachedException" .
hasStatus 400
_LinkNameAlreadyInUseException :: AsError a => Getting (First ServiceError) a ServiceError
_LinkNameAlreadyInUseException =
_MatchServiceError cloudDirectory "LinkNameAlreadyInUseException" .
hasStatus 400
_InternalServiceException :: AsError a => Getting (First ServiceError) a ServiceError
_InternalServiceException =
_MatchServiceError cloudDirectory "InternalServiceException" . hasStatus 500
_SchemaAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError
_SchemaAlreadyExistsException =
_MatchServiceError cloudDirectory "SchemaAlreadyExistsException" .
hasStatus 400
_IndexedAttributeMissingException :: AsError a => Getting (First ServiceError) a ServiceError
_IndexedAttributeMissingException =
_MatchServiceError cloudDirectory "IndexedAttributeMissingException" .
hasStatus 400
_DirectoryDeletedException :: AsError a => Getting (First ServiceError) a ServiceError
_DirectoryDeletedException =
_MatchServiceError cloudDirectory "DirectoryDeletedException" . hasStatus 400
_RetryableConflictException :: AsError a => Getting (First ServiceError) a ServiceError
_RetryableConflictException =
_MatchServiceError cloudDirectory "RetryableConflictException" . hasStatus 409
_InvalidARNException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidARNException =
_MatchServiceError cloudDirectory "InvalidArnException" . hasStatus 400
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
_MatchServiceError cloudDirectory "ResourceNotFoundException" . hasStatus 404
_FacetNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_FacetNotFoundException =
_MatchServiceError cloudDirectory "FacetNotFoundException" . hasStatus 400
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_LimitExceededException =
_MatchServiceError cloudDirectory "LimitExceededException" . hasStatus 400
_ObjectNotDetachedException :: AsError a => Getting (First ServiceError) a ServiceError
_ObjectNotDetachedException =
_MatchServiceError cloudDirectory "ObjectNotDetachedException" . hasStatus 400