{ "version":"2.0", "metadata":{ "apiVersion":"2016-05-01", "endpointPrefix":"workdocs", "jsonVersion":"1.1", "protocol":"rest-json", "serviceFullName":"Amazon WorkDocs", "signatureVersion":"v4", "uid":"workdocs-2016-05-01" }, "operations":{ "AbortDocumentVersionUpload":{ "name":"AbortDocumentVersionUpload", "http":{ "method":"DELETE", "requestUri":"/api/v1/documents/{DocumentId}/versions/{VersionId}", "responseCode":204 }, "input":{"shape":"AbortDocumentVersionUploadRequest"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"ProhibitedStateException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "ActivateUser":{ "name":"ActivateUser", "http":{ "method":"POST", "requestUri":"/api/v1/users/{UserId}/activation", "responseCode":200 }, "input":{"shape":"ActivateUserRequest"}, "output":{"shape":"ActivateUserResponse"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "AddResourcePermissions":{ "name":"AddResourcePermissions", "http":{ "method":"POST", "requestUri":"/api/v1/resources/{ResourceId}/permissions", "responseCode":201 }, "input":{"shape":"AddResourcePermissionsRequest"}, "output":{"shape":"AddResourcePermissionsResponse"}, "errors":[ {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "CreateFolder":{ "name":"CreateFolder", "http":{ "method":"POST", "requestUri":"/api/v1/folders", "responseCode":201 }, "input":{"shape":"CreateFolderRequest"}, "output":{"shape":"CreateFolderResponse"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"EntityAlreadyExistsException"}, {"shape":"ProhibitedStateException"}, {"shape":"LimitExceededException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "CreateNotificationSubscription":{ "name":"CreateNotificationSubscription", "http":{ "method":"POST", "requestUri":"/api/v1/organizations/{OrganizationId}/subscriptions", "responseCode":200 }, "input":{"shape":"CreateNotificationSubscriptionRequest"}, "output":{"shape":"CreateNotificationSubscriptionResponse"}, "errors":[ {"shape":"UnauthorizedResourceAccessException"}, {"shape":"TooManySubscriptionsException"}, {"shape":"ServiceUnavailableException"} ] }, "CreateUser":{ "name":"CreateUser", "http":{ "method":"POST", "requestUri":"/api/v1/users", "responseCode":201 }, "input":{"shape":"CreateUserRequest"}, "output":{"shape":"CreateUserResponse"}, "errors":[ {"shape":"EntityAlreadyExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "DeactivateUser":{ "name":"DeactivateUser", "http":{ "method":"DELETE", "requestUri":"/api/v1/users/{UserId}/activation", "responseCode":204 }, "input":{"shape":"DeactivateUserRequest"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "DeleteDocument":{ "name":"DeleteDocument", "http":{ "method":"DELETE", "requestUri":"/api/v1/documents/{DocumentId}", "responseCode":204 }, "input":{"shape":"DeleteDocumentRequest"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"ProhibitedStateException"}, {"shape":"ConcurrentModificationException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "DeleteFolder":{ "name":"DeleteFolder", "http":{ "method":"DELETE", "requestUri":"/api/v1/folders/{FolderId}", "responseCode":204 }, "input":{"shape":"DeleteFolderRequest"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"ProhibitedStateException"}, {"shape":"ConcurrentModificationException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "DeleteFolderContents":{ "name":"DeleteFolderContents", "http":{ "method":"DELETE", "requestUri":"/api/v1/folders/{FolderId}/contents", "responseCode":204 }, "input":{"shape":"DeleteFolderContentsRequest"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "DeleteNotificationSubscription":{ "name":"DeleteNotificationSubscription", "http":{ "method":"DELETE", "requestUri":"/api/v1/organizations/{OrganizationId}/subscriptions/{SubscriptionId}", "responseCode":200 }, "input":{"shape":"DeleteNotificationSubscriptionRequest"}, "errors":[ {"shape":"UnauthorizedResourceAccessException"}, {"shape":"EntityNotExistsException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ProhibitedStateException"} ] }, "DeleteUser":{ "name":"DeleteUser", "http":{ "method":"DELETE", "requestUri":"/api/v1/users/{UserId}", "responseCode":204 }, "input":{"shape":"DeleteUserRequest"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "DescribeDocumentVersions":{ "name":"DescribeDocumentVersions", "http":{ "method":"GET", "requestUri":"/api/v1/documents/{DocumentId}/versions", "responseCode":200 }, "input":{"shape":"DescribeDocumentVersionsRequest"}, "output":{"shape":"DescribeDocumentVersionsResponse"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"InvalidArgumentException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ProhibitedStateException"} ] }, "DescribeFolderContents":{ "name":"DescribeFolderContents", "http":{ "method":"GET", "requestUri":"/api/v1/folders/{FolderId}/contents", "responseCode":200 }, "input":{"shape":"DescribeFolderContentsRequest"}, "output":{"shape":"DescribeFolderContentsResponse"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"InvalidArgumentException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ProhibitedStateException"} ] }, "DescribeNotificationSubscriptions":{ "name":"DescribeNotificationSubscriptions", "http":{ "method":"GET", "requestUri":"/api/v1/organizations/{OrganizationId}/subscriptions", "responseCode":200 }, "input":{"shape":"DescribeNotificationSubscriptionsRequest"}, "output":{"shape":"DescribeNotificationSubscriptionsResponse"}, "errors":[ {"shape":"UnauthorizedResourceAccessException"}, {"shape":"EntityNotExistsException"}, {"shape":"ServiceUnavailableException"} ] }, "DescribeResourcePermissions":{ "name":"DescribeResourcePermissions", "http":{ "method":"GET", "requestUri":"/api/v1/resources/{ResourceId}/permissions", "responseCode":200 }, "input":{"shape":"DescribeResourcePermissionsRequest"}, "output":{"shape":"DescribeResourcePermissionsResponse"}, "errors":[ {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "DescribeUsers":{ "name":"DescribeUsers", "http":{ "method":"GET", "requestUri":"/api/v1/users", "responseCode":200 }, "input":{"shape":"DescribeUsersRequest"}, "output":{"shape":"DescribeUsersResponse"}, "errors":[ {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"}, {"shape":"InvalidArgumentException"} ] }, "GetDocument":{ "name":"GetDocument", "http":{ "method":"GET", "requestUri":"/api/v1/documents/{DocumentId}", "responseCode":200 }, "input":{"shape":"GetDocumentRequest"}, "output":{"shape":"GetDocumentResponse"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"InvalidArgumentException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "GetDocumentPath":{ "name":"GetDocumentPath", "http":{ "method":"GET", "requestUri":"/api/v1/documents/{DocumentId}/path", "responseCode":200 }, "input":{"shape":"GetDocumentPathRequest"}, "output":{"shape":"GetDocumentPathResponse"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "GetDocumentVersion":{ "name":"GetDocumentVersion", "http":{ "method":"GET", "requestUri":"/api/v1/documents/{DocumentId}/versions/{VersionId}", "responseCode":200 }, "input":{"shape":"GetDocumentVersionRequest"}, "output":{"shape":"GetDocumentVersionResponse"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ProhibitedStateException"} ] }, "GetFolder":{ "name":"GetFolder", "http":{ "method":"GET", "requestUri":"/api/v1/folders/{FolderId}", "responseCode":200 }, "input":{"shape":"GetFolderRequest"}, "output":{"shape":"GetFolderResponse"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"InvalidArgumentException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ProhibitedStateException"} ] }, "GetFolderPath":{ "name":"GetFolderPath", "http":{ "method":"GET", "requestUri":"/api/v1/folders/{FolderId}/path", "responseCode":200 }, "input":{"shape":"GetFolderPathRequest"}, "output":{"shape":"GetFolderPathResponse"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "InitiateDocumentVersionUpload":{ "name":"InitiateDocumentVersionUpload", "http":{ "method":"POST", "requestUri":"/api/v1/documents", "responseCode":201 }, "input":{"shape":"InitiateDocumentVersionUploadRequest"}, "output":{"shape":"InitiateDocumentVersionUploadResponse"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"EntityAlreadyExistsException"}, {"shape":"StorageLimitExceededException"}, {"shape":"StorageLimitWillExceedException"}, {"shape":"ProhibitedStateException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "RemoveAllResourcePermissions":{ "name":"RemoveAllResourcePermissions", "http":{ "method":"DELETE", "requestUri":"/api/v1/resources/{ResourceId}/permissions", "responseCode":204 }, "input":{"shape":"RemoveAllResourcePermissionsRequest"}, "errors":[ {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "RemoveResourcePermission":{ "name":"RemoveResourcePermission", "http":{ "method":"DELETE", "requestUri":"/api/v1/resources/{ResourceId}/permissions/{PrincipalId}", "responseCode":204 }, "input":{"shape":"RemoveResourcePermissionRequest"}, "errors":[ {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "UpdateDocument":{ "name":"UpdateDocument", "http":{ "method":"PATCH", "requestUri":"/api/v1/documents/{DocumentId}", "responseCode":200 }, "input":{"shape":"UpdateDocumentRequest"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"EntityAlreadyExistsException"}, {"shape":"LimitExceededException"}, {"shape":"ProhibitedStateException"}, {"shape":"ConcurrentModificationException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "UpdateDocumentVersion":{ "name":"UpdateDocumentVersion", "http":{ "method":"PATCH", "requestUri":"/api/v1/documents/{DocumentId}/versions/{VersionId}", "responseCode":200 }, "input":{"shape":"UpdateDocumentVersionRequest"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"ProhibitedStateException"}, {"shape":"ConcurrentModificationException"}, {"shape":"InvalidOperationException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "UpdateFolder":{ "name":"UpdateFolder", "http":{ "method":"PATCH", "requestUri":"/api/v1/folders/{FolderId}", "responseCode":200 }, "input":{"shape":"UpdateFolderRequest"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"EntityAlreadyExistsException"}, {"shape":"ProhibitedStateException"}, {"shape":"ConcurrentModificationException"}, {"shape":"LimitExceededException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"} ] }, "UpdateUser":{ "name":"UpdateUser", "http":{ "method":"PATCH", "requestUri":"/api/v1/users/{UserId}", "responseCode":200 }, "input":{"shape":"UpdateUserRequest"}, "output":{"shape":"UpdateUserResponse"}, "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"IllegalUserStateException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"}, {"shape":"DeactivatingLastSystemUserException"} ] } }, "shapes":{ "AbortDocumentVersionUploadRequest":{ "type":"structure", "required":[ "DocumentId", "VersionId" ], "members":{ "DocumentId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"DocumentId" }, "VersionId":{ "shape":"DocumentVersionIdType", "location":"uri", "locationName":"VersionId" } } }, "ActivateUserRequest":{ "type":"structure", "required":["UserId"], "members":{ "UserId":{ "shape":"IdType", "location":"uri", "locationName":"UserId" } } }, "ActivateUserResponse":{ "type":"structure", "members":{ "User":{"shape":"User"} } }, "AddResourcePermissionsRequest":{ "type":"structure", "required":[ "ResourceId", "Principals" ], "members":{ "ResourceId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"ResourceId" }, "Principals":{"shape":"SharePrincipalList"} } }, "AddResourcePermissionsResponse":{ "type":"structure", "members":{ "ShareResults":{"shape":"ShareResultsList"} } }, "ConcurrentModificationException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":409}, "exception":true }, "CreateFolderRequest":{ "type":"structure", "required":["ParentFolderId"], "members":{ "Name":{"shape":"ResourceNameType"}, "ParentFolderId":{"shape":"ResourceIdType"} } }, "CreateFolderResponse":{ "type":"structure", "members":{ "Metadata":{"shape":"FolderMetadata"} } }, "CreateNotificationSubscriptionRequest":{ "type":"structure", "required":[ "OrganizationId", "Endpoint", "Protocol", "SubscriptionType" ], "members":{ "OrganizationId":{ "shape":"IdType", "location":"uri", "locationName":"OrganizationId" }, "Endpoint":{"shape":"SubscriptionEndPointType"}, "Protocol":{"shape":"SubscriptionProtocolType"}, "SubscriptionType":{"shape":"SubscriptionType"} } }, "CreateNotificationSubscriptionResponse":{ "type":"structure", "members":{ "Subscription":{"shape":"Subscription"} } }, "CreateUserRequest":{ "type":"structure", "required":[ "Username", "GivenName", "Surname", "Password" ], "members":{ "OrganizationId":{"shape":"IdType"}, "Username":{"shape":"UsernameType"}, "GivenName":{"shape":"UserAttributeValueType"}, "Surname":{"shape":"UserAttributeValueType"}, "Password":{"shape":"PasswordType"}, "TimeZoneId":{"shape":"TimeZoneIdType"}, "StorageRule":{"shape":"StorageRuleType"} } }, "CreateUserResponse":{ "type":"structure", "members":{ "User":{"shape":"User"} } }, "DeactivateUserRequest":{ "type":"structure", "required":["UserId"], "members":{ "UserId":{ "shape":"IdType", "location":"uri", "locationName":"UserId" } } }, "DeactivatingLastSystemUserException":{ "type":"structure", "members":{ }, "error":{"httpStatusCode":409}, "exception":true }, "DeleteDocumentRequest":{ "type":"structure", "required":["DocumentId"], "members":{ "DocumentId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"DocumentId" } } }, "DeleteFolderContentsRequest":{ "type":"structure", "required":["FolderId"], "members":{ "FolderId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"FolderId" } } }, "DeleteFolderRequest":{ "type":"structure", "required":["FolderId"], "members":{ "FolderId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"FolderId" } } }, "DeleteNotificationSubscriptionRequest":{ "type":"structure", "required":[ "SubscriptionId", "OrganizationId" ], "members":{ "SubscriptionId":{ "shape":"IdType", "location":"uri", "locationName":"SubscriptionId" }, "OrganizationId":{ "shape":"IdType", "location":"uri", "locationName":"OrganizationId" } } }, "DeleteUserRequest":{ "type":"structure", "required":["UserId"], "members":{ "UserId":{ "shape":"IdType", "location":"uri", "locationName":"UserId" } } }, "DescribeDocumentVersionsRequest":{ "type":"structure", "required":["DocumentId"], "members":{ "DocumentId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"DocumentId" }, "Marker":{ "shape":"PageMarkerType", "location":"querystring", "locationName":"marker" }, "Limit":{ "shape":"LimitType", "location":"querystring", "locationName":"limit" }, "Include":{ "shape":"FieldNamesType", "location":"querystring", "locationName":"include" }, "Fields":{ "shape":"FieldNamesType", "location":"querystring", "locationName":"fields" } } }, "DescribeDocumentVersionsResponse":{ "type":"structure", "members":{ "DocumentVersions":{"shape":"DocumentVersionMetadataList"}, "Marker":{"shape":"PageMarkerType"} } }, "DescribeFolderContentsRequest":{ "type":"structure", "required":["FolderId"], "members":{ "FolderId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"FolderId" }, "Sort":{ "shape":"ResourceSortType", "location":"querystring", "locationName":"sort" }, "Order":{ "shape":"OrderType", "location":"querystring", "locationName":"order" }, "Limit":{ "shape":"LimitType", "location":"querystring", "locationName":"limit" }, "Marker":{ "shape":"PageMarkerType", "location":"querystring", "locationName":"marker" }, "Type":{ "shape":"FolderContentType", "location":"querystring", "locationName":"type" }, "Include":{ "shape":"FieldNamesType", "location":"querystring", "locationName":"include" } } }, "DescribeFolderContentsResponse":{ "type":"structure", "members":{ "Folders":{"shape":"FolderMetadataList"}, "Documents":{"shape":"DocumentMetadataList"}, "Marker":{"shape":"PageMarkerType"} } }, "DescribeNotificationSubscriptionsRequest":{ "type":"structure", "required":["OrganizationId"], "members":{ "OrganizationId":{ "shape":"IdType", "location":"uri", "locationName":"OrganizationId" }, "Marker":{ "shape":"PageMarkerType", "location":"querystring", "locationName":"marker" }, "Limit":{ "shape":"LimitType", "location":"querystring", "locationName":"limit" } } }, "DescribeNotificationSubscriptionsResponse":{ "type":"structure", "members":{ "Subscriptions":{"shape":"SubscriptionList"}, "Marker":{"shape":"PageMarkerType"} } }, "DescribeResourcePermissionsRequest":{ "type":"structure", "required":["ResourceId"], "members":{ "ResourceId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"ResourceId" }, "Limit":{ "shape":"LimitType", "location":"querystring", "locationName":"limit" }, "Marker":{ "shape":"PageMarkerType", "location":"querystring", "locationName":"marker" } } }, "DescribeResourcePermissionsResponse":{ "type":"structure", "members":{ "Principals":{"shape":"PrincipalList"}, "Marker":{"shape":"PageMarkerType"} } }, "DescribeUsersRequest":{ "type":"structure", "members":{ "OrganizationId":{ "shape":"IdType", "location":"querystring", "locationName":"organizationId" }, "UserIds":{ "shape":"UserIdsType", "location":"querystring", "locationName":"userIds" }, "Query":{ "shape":"SearchQueryType", "location":"querystring", "locationName":"query" }, "Include":{ "shape":"UserFilterType", "location":"querystring", "locationName":"include" }, "Order":{ "shape":"OrderType", "location":"querystring", "locationName":"order" }, "Sort":{ "shape":"UserSortType", "location":"querystring", "locationName":"sort" }, "Marker":{ "shape":"PageMarkerType", "location":"querystring", "locationName":"marker" }, "Limit":{ "shape":"LimitType", "location":"querystring", "locationName":"limit" }, "Fields":{ "shape":"FieldNamesType", "location":"querystring", "locationName":"fields" } } }, "DescribeUsersResponse":{ "type":"structure", "members":{ "Users":{"shape":"OrganizationUserList"}, "TotalNumberOfUsers":{"shape":"SizeType"}, "Marker":{"shape":"PageMarkerType"} } }, "DocumentContentType":{ "type":"string", "max":128, "min":1 }, "DocumentMetadata":{ "type":"structure", "members":{ "Id":{"shape":"ResourceIdType"}, "CreatorId":{"shape":"IdType"}, "ParentFolderId":{"shape":"ResourceIdType"}, "CreatedTimestamp":{"shape":"TimestampType"}, "ModifiedTimestamp":{"shape":"TimestampType"}, "LatestVersionMetadata":{"shape":"DocumentVersionMetadata"}, "ResourceState":{"shape":"ResourceStateType"} } }, "DocumentMetadataList":{ "type":"list", "member":{"shape":"DocumentMetadata"} }, "DocumentSourceType":{ "type":"string", "enum":[ "ORIGINAL", "WITH_COMMENTS" ] }, "DocumentSourceUrlMap":{ "type":"map", "key":{"shape":"DocumentSourceType"}, "value":{"shape":"UrlType"} }, "DocumentStatusType":{ "type":"string", "enum":[ "INITIALIZED", "ACTIVE" ] }, "DocumentThumbnailType":{ "type":"string", "enum":[ "SMALL", "SMALL_HQ", "LARGE" ] }, "DocumentThumbnailUrlMap":{ "type":"map", "key":{"shape":"DocumentThumbnailType"}, "value":{"shape":"UrlType"} }, "DocumentVersionIdType":{ "type":"string", "max":128, "min":1, "pattern":"[\\w+-.@]+" }, "DocumentVersionMetadata":{ "type":"structure", "members":{ "Id":{"shape":"DocumentVersionIdType"}, "Name":{"shape":"ResourceNameType"}, "ContentType":{"shape":"DocumentContentType"}, "Size":{"shape":"SizeType"}, "Signature":{"shape":"HashType"}, "Status":{"shape":"DocumentStatusType"}, "CreatedTimestamp":{"shape":"TimestampType"}, "ModifiedTimestamp":{"shape":"TimestampType"}, "ContentCreatedTimestamp":{"shape":"TimestampType"}, "ContentModifiedTimestamp":{"shape":"TimestampType"}, "CreatorId":{"shape":"IdType"}, "Thumbnail":{"shape":"DocumentThumbnailUrlMap"}, "Source":{"shape":"DocumentSourceUrlMap"} } }, "DocumentVersionMetadataList":{ "type":"list", "member":{"shape":"DocumentVersionMetadata"} }, "DocumentVersionStatus":{ "type":"string", "enum":["ACTIVE"] }, "EmailAddressType":{ "type":"string", "max":256, "min":1, "pattern":"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}" }, "EntityAlreadyExistsException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":409}, "exception":true }, "EntityIdList":{ "type":"list", "member":{"shape":"IdType"} }, "EntityNotExistsException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"}, "EntityIds":{"shape":"EntityIdList"} }, "error":{"httpStatusCode":404}, "exception":true }, "ErrorMessageType":{"type":"string"}, "FailedDependencyException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":424}, "exception":true }, "FieldNamesType":{ "type":"string", "max":256, "min":1, "pattern":"[\\w,]+" }, "FolderContentType":{ "type":"string", "enum":[ "ALL", "DOCUMENT", "FOLDER" ] }, "FolderMetadata":{ "type":"structure", "members":{ "Id":{"shape":"ResourceIdType"}, "Name":{"shape":"ResourceNameType"}, "CreatorId":{"shape":"IdType"}, "ParentFolderId":{"shape":"ResourceIdType"}, "CreatedTimestamp":{"shape":"TimestampType"}, "ModifiedTimestamp":{"shape":"TimestampType"}, "ResourceState":{"shape":"ResourceStateType"}, "Signature":{"shape":"HashType"} } }, "FolderMetadataList":{ "type":"list", "member":{"shape":"FolderMetadata"} }, "GetDocumentPathRequest":{ "type":"structure", "required":["DocumentId"], "members":{ "DocumentId":{ "shape":"IdType", "location":"uri", "locationName":"DocumentId" }, "Limit":{ "shape":"LimitType", "location":"querystring", "locationName":"limit" }, "Fields":{ "shape":"FieldNamesType", "location":"querystring", "locationName":"fields" }, "Marker":{ "shape":"PageMarkerType", "location":"querystring", "locationName":"marker" } } }, "GetDocumentPathResponse":{ "type":"structure", "members":{ "Path":{"shape":"ResourcePath"} } }, "GetDocumentRequest":{ "type":"structure", "required":["DocumentId"], "members":{ "DocumentId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"DocumentId" } } }, "GetDocumentResponse":{ "type":"structure", "members":{ "Metadata":{"shape":"DocumentMetadata"} } }, "GetDocumentVersionRequest":{ "type":"structure", "required":[ "DocumentId", "VersionId" ], "members":{ "DocumentId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"DocumentId" }, "VersionId":{ "shape":"DocumentVersionIdType", "location":"uri", "locationName":"VersionId" }, "Fields":{ "shape":"FieldNamesType", "location":"querystring", "locationName":"fields" } } }, "GetDocumentVersionResponse":{ "type":"structure", "members":{ "Metadata":{"shape":"DocumentVersionMetadata"} } }, "GetFolderPathRequest":{ "type":"structure", "required":["FolderId"], "members":{ "FolderId":{ "shape":"IdType", "location":"uri", "locationName":"FolderId" }, "Limit":{ "shape":"LimitType", "location":"querystring", "locationName":"limit" }, "Fields":{ "shape":"FieldNamesType", "location":"querystring", "locationName":"fields" }, "Marker":{ "shape":"PageMarkerType", "location":"querystring", "locationName":"marker" } } }, "GetFolderPathResponse":{ "type":"structure", "members":{ "Path":{"shape":"ResourcePath"} } }, "GetFolderRequest":{ "type":"structure", "required":["FolderId"], "members":{ "FolderId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"FolderId" } } }, "GetFolderResponse":{ "type":"structure", "members":{ "Metadata":{"shape":"FolderMetadata"} } }, "HashType":{ "type":"string", "max":128, "min":0, "pattern":"[&\\w+-.@]+" }, "HeaderNameType":{ "type":"string", "max":256, "min":1, "pattern":"[\\w-]+" }, "HeaderValueType":{ "type":"string", "max":1024, "min":1 }, "IdType":{ "type":"string", "max":256, "min":1, "pattern":"[&\\w+-.@]+" }, "IllegalUserStateException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":409}, "exception":true }, "InitiateDocumentVersionUploadRequest":{ "type":"structure", "required":["ParentFolderId"], "members":{ "Id":{"shape":"ResourceIdType"}, "Name":{"shape":"ResourceNameType"}, "ContentCreatedTimestamp":{"shape":"TimestampType"}, "ContentModifiedTimestamp":{"shape":"TimestampType"}, "ContentType":{"shape":"DocumentContentType"}, "DocumentSizeInBytes":{"shape":"SizeType"}, "ParentFolderId":{"shape":"ResourceIdType"} } }, "InitiateDocumentVersionUploadResponse":{ "type":"structure", "members":{ "Metadata":{"shape":"DocumentMetadata"}, "UploadMetadata":{"shape":"UploadMetadata"} } }, "InvalidArgumentException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":400}, "exception":true }, "InvalidOperationException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":405}, "exception":true }, "LimitExceededException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":409}, "exception":true }, "LimitType":{ "type":"integer", "max":999, "min":1 }, "LocaleType":{ "type":"string", "enum":[ "en", "fr", "ko", "de", "es", "ja", "ru", "zh_CN", "zh_TW", "pt_BR", "default" ] }, "MessageType":{ "type":"string", "max":2048, "min":0, "sensitive":true }, "OrderType":{ "type":"string", "enum":[ "ASCENDING", "DESCENDING" ] }, "OrganizationUserList":{ "type":"list", "member":{"shape":"User"} }, "PageMarkerType":{ "type":"string", "max":2048, "min":1 }, "PasswordType":{ "type":"string", "max":32, "min":4, "pattern":"[\\u0020-\\u00FF]+", "sensitive":true }, "PermissionInfo":{ "type":"structure", "members":{ "Role":{"shape":"RoleType"}, "Type":{"shape":"RolePermissionType"} } }, "PermissionInfoList":{ "type":"list", "member":{"shape":"PermissionInfo"} }, "PositiveSizeType":{ "type":"long", "min":0 }, "Principal":{ "type":"structure", "members":{ "Id":{"shape":"IdType"}, "Type":{"shape":"PrincipalType"}, "Roles":{"shape":"PermissionInfoList"} } }, "PrincipalList":{ "type":"list", "member":{"shape":"Principal"} }, "PrincipalType":{ "type":"string", "enum":[ "USER", "GROUP", "INVITE", "ANONYMOUS", "ORGANIZATION" ] }, "ProhibitedStateException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":409}, "exception":true }, "RemoveAllResourcePermissionsRequest":{ "type":"structure", "required":["ResourceId"], "members":{ "ResourceId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"ResourceId" } } }, "RemoveResourcePermissionRequest":{ "type":"structure", "required":[ "ResourceId", "PrincipalId" ], "members":{ "ResourceId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"ResourceId" }, "PrincipalId":{ "shape":"IdType", "location":"uri", "locationName":"PrincipalId" }, "PrincipalType":{ "shape":"PrincipalType", "location":"querystring", "locationName":"type" } } }, "ResourceIdType":{ "type":"string", "max":128, "min":1, "pattern":"[\\w+-.@]+" }, "ResourceNameType":{ "type":"string", "max":255, "min":1, "pattern":"[\\u0020-\\u202D\\u202F-\\uFFFF]+" }, "ResourcePath":{ "type":"structure", "members":{ "Components":{"shape":"ResourcePathComponentList"} } }, "ResourcePathComponent":{ "type":"structure", "members":{ "Id":{"shape":"IdType"}, "Name":{"shape":"ResourceNameType"} } }, "ResourcePathComponentList":{ "type":"list", "member":{"shape":"ResourcePathComponent"} }, "ResourceSortType":{ "type":"string", "enum":[ "DATE", "NAME" ] }, "ResourceStateType":{ "type":"string", "enum":[ "ACTIVE", "RESTORING", "RECYCLING", "RECYCLED" ] }, "RolePermissionType":{ "type":"string", "enum":[ "DIRECT", "INHERITED" ] }, "RoleType":{ "type":"string", "enum":[ "VIEWER", "CONTRIBUTOR", "OWNER", "COOWNER" ] }, "SearchQueryType":{ "type":"string", "max":512, "min":1, "pattern":"[\\u0020-\\uFFFF]+", "sensitive":true }, "ServiceUnavailableException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":503}, "exception":true, "fault":true }, "SharePrincipal":{ "type":"structure", "required":[ "Id", "Type", "Role" ], "members":{ "Id":{"shape":"IdType"}, "Type":{"shape":"PrincipalType"}, "Role":{"shape":"RoleType"} } }, "SharePrincipalList":{ "type":"list", "member":{"shape":"SharePrincipal"} }, "ShareResult":{ "type":"structure", "members":{ "PrincipalId":{"shape":"IdType"}, "Role":{"shape":"RoleType"}, "Status":{"shape":"ShareStatusType"}, "ShareId":{"shape":"ResourceIdType"}, "StatusMessage":{"shape":"MessageType"} } }, "ShareResultsList":{ "type":"list", "member":{"shape":"ShareResult"} }, "ShareStatusType":{ "type":"string", "enum":[ "SUCCESS", "FAILURE" ] }, "SignedHeaderMap":{ "type":"map", "key":{"shape":"HeaderNameType"}, "value":{"shape":"HeaderValueType"} }, "SizeType":{"type":"long"}, "StorageLimitExceededException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":409}, "exception":true }, "StorageLimitWillExceedException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":413}, "exception":true }, "StorageRuleType":{ "type":"structure", "members":{ "StorageAllocatedInBytes":{"shape":"PositiveSizeType"}, "StorageType":{"shape":"StorageType"} } }, "StorageType":{ "type":"string", "enum":[ "UNLIMITED", "QUOTA" ] }, "Subscription":{ "type":"structure", "members":{ "SubscriptionId":{"shape":"IdType"}, "EndPoint":{"shape":"SubscriptionEndPointType"}, "Protocol":{"shape":"SubscriptionProtocolType"} } }, "SubscriptionEndPointType":{ "type":"string", "max":256, "min":1 }, "SubscriptionList":{ "type":"list", "member":{"shape":"Subscription"}, "max":256 }, "SubscriptionProtocolType":{ "type":"string", "enum":["HTTPS"] }, "SubscriptionType":{ "type":"string", "enum":["ALL"] }, "TimeZoneIdType":{ "type":"string", "max":256, "min":1 }, "TimestampType":{"type":"timestamp"}, "TooManySubscriptionsException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":429}, "exception":true }, "UnauthorizedOperationException":{ "type":"structure", "members":{ }, "error":{"httpStatusCode":403}, "exception":true }, "UnauthorizedResourceAccessException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessageType"} }, "error":{"httpStatusCode":404}, "exception":true }, "UpdateDocumentRequest":{ "type":"structure", "required":["DocumentId"], "members":{ "DocumentId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"DocumentId" }, "Name":{"shape":"ResourceNameType"}, "ParentFolderId":{"shape":"ResourceIdType"}, "ResourceState":{"shape":"ResourceStateType"} } }, "UpdateDocumentVersionRequest":{ "type":"structure", "required":[ "DocumentId", "VersionId" ], "members":{ "DocumentId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"DocumentId" }, "VersionId":{ "shape":"DocumentVersionIdType", "location":"uri", "locationName":"VersionId" }, "VersionStatus":{"shape":"DocumentVersionStatus"} } }, "UpdateFolderRequest":{ "type":"structure", "required":["FolderId"], "members":{ "FolderId":{ "shape":"ResourceIdType", "location":"uri", "locationName":"FolderId" }, "Name":{"shape":"ResourceNameType"}, "ParentFolderId":{"shape":"ResourceIdType"}, "ResourceState":{"shape":"ResourceStateType"} } }, "UpdateUserRequest":{ "type":"structure", "required":["UserId"], "members":{ "UserId":{ "shape":"IdType", "location":"uri", "locationName":"UserId" }, "GivenName":{"shape":"UserAttributeValueType"}, "Surname":{"shape":"UserAttributeValueType"}, "Type":{"shape":"UserType"}, "StorageRule":{"shape":"StorageRuleType"}, "TimeZoneId":{"shape":"TimeZoneIdType"}, "Locale":{"shape":"LocaleType"} } }, "UpdateUserResponse":{ "type":"structure", "members":{ "User":{"shape":"User"} } }, "UploadMetadata":{ "type":"structure", "members":{ "UploadUrl":{"shape":"UrlType"}, "SignedHeaders":{"shape":"SignedHeaderMap"} } }, "UrlType":{ "type":"string", "max":1024, "min":1, "sensitive":true }, "User":{ "type":"structure", "members":{ "Id":{"shape":"IdType"}, "Username":{"shape":"UsernameType"}, "EmailAddress":{"shape":"EmailAddressType"}, "GivenName":{"shape":"UserAttributeValueType"}, "Surname":{"shape":"UserAttributeValueType"}, "OrganizationId":{"shape":"IdType"}, "RootFolderId":{"shape":"ResourceIdType"}, "RecycleBinFolderId":{"shape":"ResourceIdType"}, "Status":{"shape":"UserStatusType"}, "Type":{"shape":"UserType"}, "CreatedTimestamp":{"shape":"TimestampType"}, "ModifiedTimestamp":{"shape":"TimestampType"}, "TimeZoneId":{"shape":"TimeZoneIdType"}, "Locale":{"shape":"LocaleType"}, "Storage":{"shape":"UserStorageMetadata"} } }, "UserAttributeValueType":{ "type":"string", "max":64, "min":1 }, "UserFilterType":{ "type":"string", "enum":[ "ALL", "ACTIVE_PENDING" ] }, "UserIdsType":{ "type":"string", "max":2000, "min":1, "pattern":"[&\\w+-.@, ]+" }, "UserSortType":{ "type":"string", "enum":[ "USER_NAME", "FULL_NAME", "STORAGE_LIMIT", "USER_STATUS", "STORAGE_USED" ] }, "UserStatusType":{ "type":"string", "enum":[ "ACTIVE", "INACTIVE", "PENDING" ] }, "UserStorageMetadata":{ "type":"structure", "members":{ "StorageUtilizedInBytes":{"shape":"SizeType"}, "StorageRule":{"shape":"StorageRuleType"} } }, "UserType":{ "type":"string", "enum":[ "USER", "ADMIN" ] }, "UsernameType":{ "type":"string", "max":256, "min":1, "pattern":"[\\w\\-.]+(@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]+)?" } } }