Struct aws_sdk_workdocs::client::Client
source · [−]pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Client for Amazon WorkDocs
Client for invoking operations on Amazon WorkDocs. Each operation on Amazon WorkDocs is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_workdocs::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_workdocs::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_workdocs::Client::from_conf(config);
Implementations
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
Constructs a fluent builder for the AbortDocumentVersionUpload
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
document_id(impl Into<String>)
/set_document_id(Option<String>)
:The ID of the document.
version_id(impl Into<String>)
/set_version_id(Option<String>)
:The ID of the version.
- On success, responds with
AbortDocumentVersionUploadOutput
- On failure, responds with
SdkError<AbortDocumentVersionUploadError>
Constructs a fluent builder for the ActivateUser
operation.
- The fluent builder is configurable:
user_id(impl Into<String>)
/set_user_id(Option<String>)
:The ID of the user.
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
- On success, responds with
ActivateUserOutput
with field(s):user(Option<User>)
:The user information.
- On failure, responds with
SdkError<ActivateUserError>
Constructs a fluent builder for the AddResourcePermissions
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
resource_id(impl Into<String>)
/set_resource_id(Option<String>)
:The ID of the resource.
principals(Vec<SharePrincipal>)
/set_principals(Option<Vec<SharePrincipal>>)
:The users, groups, or organization being granted permission.
notification_options(NotificationOptions)
/set_notification_options(Option<NotificationOptions>)
:The notification options.
- On success, responds with
AddResourcePermissionsOutput
with field(s):share_results(Option<Vec<ShareResult>>)
:The share results.
- On failure, responds with
SdkError<AddResourcePermissionsError>
Constructs a fluent builder for the CreateComment
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
document_id(impl Into<String>)
/set_document_id(Option<String>)
:The ID of the document.
version_id(impl Into<String>)
/set_version_id(Option<String>)
:The ID of the document version.
parent_id(impl Into<String>)
/set_parent_id(Option<String>)
:The ID of the parent comment.
thread_id(impl Into<String>)
/set_thread_id(Option<String>)
:The ID of the root comment in the thread.
text(impl Into<String>)
/set_text(Option<String>)
:The text of the comment.
visibility(CommentVisibilityType)
/set_visibility(Option<CommentVisibilityType>)
:The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
notify_collaborators(bool)
/set_notify_collaborators(bool)
:Set this parameter to TRUE to send an email out to the document collaborators after the comment is created.
- On success, responds with
CreateCommentOutput
with field(s):comment(Option<Comment>)
:The comment that has been created.
- On failure, responds with
SdkError<CreateCommentError>
Constructs a fluent builder for the CreateCustomMetadata
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
resource_id(impl Into<String>)
/set_resource_id(Option<String>)
:The ID of the resource.
version_id(impl Into<String>)
/set_version_id(Option<String>)
:The ID of the version, if the custom metadata is being added to a document version.
custom_metadata(HashMap<String, String>)
/set_custom_metadata(Option<HashMap<String, String>>)
:Custom metadata in the form of name-value pairs.
- On success, responds with
CreateCustomMetadataOutput
- On failure, responds with
SdkError<CreateCustomMetadataError>
Constructs a fluent builder for the CreateFolder
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the new folder.
parent_folder_id(impl Into<String>)
/set_parent_folder_id(Option<String>)
:The ID of the parent folder.
- On success, responds with
CreateFolderOutput
with field(s):metadata(Option<FolderMetadata>)
:The metadata of the folder.
- On failure, responds with
SdkError<CreateFolderError>
Constructs a fluent builder for the CreateLabels
operation.
- The fluent builder is configurable:
resource_id(impl Into<String>)
/set_resource_id(Option<String>)
:The ID of the resource.
labels(Vec<String>)
/set_labels(Option<Vec<String>>)
:List of labels to add to the resource.
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
- On success, responds with
CreateLabelsOutput
- On failure, responds with
SdkError<CreateLabelsError>
Constructs a fluent builder for the CreateNotificationSubscription
operation.
- The fluent builder is configurable:
organization_id(impl Into<String>)
/set_organization_id(Option<String>)
:The ID of the organization.
endpoint(impl Into<String>)
/set_endpoint(Option<String>)
:The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with
https
.protocol(SubscriptionProtocolType)
/set_protocol(Option<SubscriptionProtocolType>)
:The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.
subscription_type(SubscriptionType)
/set_subscription_type(Option<SubscriptionType>)
:The notification type.
- On success, responds with
CreateNotificationSubscriptionOutput
with field(s):subscription(Option<Subscription>)
:The subscription.
- On failure, responds with
SdkError<CreateNotificationSubscriptionError>
Constructs a fluent builder for the CreateUser
operation.
- The fluent builder is configurable:
organization_id(impl Into<String>)
/set_organization_id(Option<String>)
:The ID of the organization.
username(impl Into<String>)
/set_username(Option<String>)
:The login name of the user.
email_address(impl Into<String>)
/set_email_address(Option<String>)
:The email address of the user.
given_name(impl Into<String>)
/set_given_name(Option<String>)
:The given name of the user.
surname(impl Into<String>)
/set_surname(Option<String>)
:The surname of the user.
password(impl Into<String>)
/set_password(Option<String>)
:The password of the user.
time_zone_id(impl Into<String>)
/set_time_zone_id(Option<String>)
:The time zone ID of the user.
storage_rule(StorageRuleType)
/set_storage_rule(Option<StorageRuleType>)
:The amount of storage for the user.
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
- On success, responds with
CreateUserOutput
with field(s):user(Option<User>)
:The user information.
- On failure, responds with
SdkError<CreateUserError>
Constructs a fluent builder for the DeactivateUser
operation.
- The fluent builder is configurable:
user_id(impl Into<String>)
/set_user_id(Option<String>)
:The ID of the user.
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
- On success, responds with
DeactivateUserOutput
- On failure, responds with
SdkError<DeactivateUserError>
Constructs a fluent builder for the DeleteComment
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
document_id(impl Into<String>)
/set_document_id(Option<String>)
:The ID of the document.
version_id(impl Into<String>)
/set_version_id(Option<String>)
:The ID of the document version.
comment_id(impl Into<String>)
/set_comment_id(Option<String>)
:The ID of the comment.
- On success, responds with
DeleteCommentOutput
- On failure, responds with
SdkError<DeleteCommentError>
Constructs a fluent builder for the DeleteCustomMetadata
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
resource_id(impl Into<String>)
/set_resource_id(Option<String>)
:The ID of the resource, either a document or folder.
version_id(impl Into<String>)
/set_version_id(Option<String>)
:The ID of the version, if the custom metadata is being deleted from a document version.
keys(Vec<String>)
/set_keys(Option<Vec<String>>)
:List of properties to remove.
delete_all(bool)
/set_delete_all(bool)
:Flag to indicate removal of all custom metadata properties from the specified resource.
- On success, responds with
DeleteCustomMetadataOutput
- On failure, responds with
SdkError<DeleteCustomMetadataError>
Constructs a fluent builder for the DeleteDocument
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
document_id(impl Into<String>)
/set_document_id(Option<String>)
:The ID of the document.
- On success, responds with
DeleteDocumentOutput
- On failure, responds with
SdkError<DeleteDocumentError>
Constructs a fluent builder for the DeleteFolder
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
folder_id(impl Into<String>)
/set_folder_id(Option<String>)
:The ID of the folder.
- On success, responds with
DeleteFolderOutput
- On failure, responds with
SdkError<DeleteFolderError>
Constructs a fluent builder for the DeleteFolderContents
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
folder_id(impl Into<String>)
/set_folder_id(Option<String>)
:The ID of the folder.
- On success, responds with
DeleteFolderContentsOutput
- On failure, responds with
SdkError<DeleteFolderContentsError>
Constructs a fluent builder for the DeleteLabels
operation.
- The fluent builder is configurable:
resource_id(impl Into<String>)
/set_resource_id(Option<String>)
:The ID of the resource.
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
labels(Vec<String>)
/set_labels(Option<Vec<String>>)
:List of labels to delete from the resource.
delete_all(bool)
/set_delete_all(bool)
:Flag to request removal of all labels from the specified resource.
- On success, responds with
DeleteLabelsOutput
- On failure, responds with
SdkError<DeleteLabelsError>
Constructs a fluent builder for the DeleteNotificationSubscription
operation.
- The fluent builder is configurable:
subscription_id(impl Into<String>)
/set_subscription_id(Option<String>)
:The ID of the subscription.
organization_id(impl Into<String>)
/set_organization_id(Option<String>)
:The ID of the organization.
- On success, responds with
DeleteNotificationSubscriptionOutput
- On failure, responds with
SdkError<DeleteNotificationSubscriptionError>
Constructs a fluent builder for the DeleteUser
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.
user_id(impl Into<String>)
/set_user_id(Option<String>)
:The ID of the user.
- On success, responds with
DeleteUserOutput
- On failure, responds with
SdkError<DeleteUserError>
Constructs a fluent builder for the DescribeActivities
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
start_time(DateTime)
/set_start_time(Option<DateTime>)
:The timestamp that determines the starting time of the activities. The response includes the activities performed after the specified timestamp.
end_time(DateTime)
/set_end_time(Option<DateTime>)
:The timestamp that determines the end time of the activities. The response includes the activities performed before the specified timestamp.
organization_id(impl Into<String>)
/set_organization_id(Option<String>)
:The ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.
activity_types(impl Into<String>)
/set_activity_types(Option<String>)
:Specifies which activity types to include in the response. If this field is left empty, all activity types are returned.
resource_id(impl Into<String>)
/set_resource_id(Option<String>)
:The document or folder ID for which to describe activity types.
user_id(impl Into<String>)
/set_user_id(Option<String>)
:The ID of the user who performed the action. The response includes activities pertaining to this user. This is an optional parameter and is only applicable for administrative API (SigV4) requests.
include_indirect_activities(bool)
/set_include_indirect_activities(bool)
:Includes indirect activities. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).
limit(i32)
/set_limit(Option<i32>)
:The maximum number of items to return.
marker(impl Into<String>)
/set_marker(Option<String>)
:The marker for the next set of results.
- On success, responds with
DescribeActivitiesOutput
with field(s):user_activities(Option<Vec<Activity>>)
:The list of activities for the specified user and time period.
marker(Option<String>)
:The marker for the next set of results.
- On failure, responds with
SdkError<DescribeActivitiesError>
Constructs a fluent builder for the DescribeComments
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
document_id(impl Into<String>)
/set_document_id(Option<String>)
:The ID of the document.
version_id(impl Into<String>)
/set_version_id(Option<String>)
:The ID of the document version.
limit(i32)
/set_limit(Option<i32>)
:The maximum number of items to return.
marker(impl Into<String>)
/set_marker(Option<String>)
:The marker for the next set of results. This marker was received from a previous call.
- On success, responds with
DescribeCommentsOutput
with field(s):comments(Option<Vec<Comment>>)
:The list of comments for the specified document version.
marker(Option<String>)
:The marker for the next set of results. This marker was received from a previous call.
- On failure, responds with
SdkError<DescribeCommentsError>
Constructs a fluent builder for the DescribeDocumentVersions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
document_id(impl Into<String>)
/set_document_id(Option<String>)
:The ID of the document.
marker(impl Into<String>)
/set_marker(Option<String>)
:The marker for the next set of results. (You received this marker from a previous call.)
limit(i32)
/set_limit(Option<i32>)
:The maximum number of versions to return with this call.
include(impl Into<String>)
/set_include(Option<String>)
:A comma-separated list of values. Specify “INITIALIZED” to include incomplete versions.
fields(impl Into<String>)
/set_fields(Option<String>)
:Specify “SOURCE” to include initialized versions and a URL for the source document.
- On success, responds with
DescribeDocumentVersionsOutput
with field(s):document_versions(Option<Vec<DocumentVersionMetadata>>)
:The document versions.
marker(Option<String>)
:The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
- On failure, responds with
SdkError<DescribeDocumentVersionsError>
Constructs a fluent builder for the DescribeFolderContents
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
folder_id(impl Into<String>)
/set_folder_id(Option<String>)
:The ID of the folder.
sort(ResourceSortType)
/set_sort(Option<ResourceSortType>)
:The sorting criteria.
order(OrderType)
/set_order(Option<OrderType>)
:The order for the contents of the folder.
limit(i32)
/set_limit(Option<i32>)
:The maximum number of items to return with this call.
marker(impl Into<String>)
/set_marker(Option<String>)
:The marker for the next set of results. This marker was received from a previous call.
r#type(FolderContentType)
/set_type(Option<FolderContentType>)
:The type of items.
include(impl Into<String>)
/set_include(Option<String>)
:The contents to include. Specify “INITIALIZED” to include initialized documents.
- On success, responds with
DescribeFolderContentsOutput
with field(s):folders(Option<Vec<FolderMetadata>>)
:The subfolders in the specified folder.
documents(Option<Vec<DocumentMetadata>>)
:The documents in the specified folder.
marker(Option<String>)
:The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
- On failure, responds with
SdkError<DescribeFolderContentsError>
Constructs a fluent builder for the DescribeGroups
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
search_query(impl Into<String>)
/set_search_query(Option<String>)
:A query to describe groups by group name.
organization_id(impl Into<String>)
/set_organization_id(Option<String>)
:The ID of the organization.
marker(impl Into<String>)
/set_marker(Option<String>)
:The marker for the next set of results. (You received this marker from a previous call.)
limit(i32)
/set_limit(Option<i32>)
:The maximum number of items to return with this call.
- On success, responds with
DescribeGroupsOutput
with field(s):groups(Option<Vec<GroupMetadata>>)
:The list of groups.
marker(Option<String>)
:The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
- On failure, responds with
SdkError<DescribeGroupsError>
pub fn describe_notification_subscriptions(
&self
) -> DescribeNotificationSubscriptions<C, M, R>
pub fn describe_notification_subscriptions(
&self
) -> DescribeNotificationSubscriptions<C, M, R>
Constructs a fluent builder for the DescribeNotificationSubscriptions
operation.
- The fluent builder is configurable:
organization_id(impl Into<String>)
/set_organization_id(Option<String>)
:The ID of the organization.
marker(impl Into<String>)
/set_marker(Option<String>)
:The marker for the next set of results. (You received this marker from a previous call.)
limit(i32)
/set_limit(Option<i32>)
:The maximum number of items to return with this call.
- On success, responds with
DescribeNotificationSubscriptionsOutput
with field(s):subscriptions(Option<Vec<Subscription>>)
:The subscriptions.
marker(Option<String>)
:The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
- On failure, responds with
SdkError<DescribeNotificationSubscriptionsError>
Constructs a fluent builder for the DescribeResourcePermissions
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
resource_id(impl Into<String>)
/set_resource_id(Option<String>)
:The ID of the resource.
principal_id(impl Into<String>)
/set_principal_id(Option<String>)
:The ID of the principal to filter permissions by.
limit(i32)
/set_limit(Option<i32>)
:The maximum number of items to return with this call.
marker(impl Into<String>)
/set_marker(Option<String>)
:The marker for the next set of results. (You received this marker from a previous call)
- On success, responds with
DescribeResourcePermissionsOutput
with field(s):principals(Option<Vec<Principal>>)
:The principals.
marker(Option<String>)
:The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
- On failure, responds with
SdkError<DescribeResourcePermissionsError>
Constructs a fluent builder for the DescribeRootFolders
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token.
limit(i32)
/set_limit(Option<i32>)
:The maximum number of items to return.
marker(impl Into<String>)
/set_marker(Option<String>)
:The marker for the next set of results. (You received this marker from a previous call.)
- On success, responds with
DescribeRootFoldersOutput
with field(s):folders(Option<Vec<FolderMetadata>>)
:The user’s special folders.
marker(Option<String>)
:The marker for the next set of results.
- On failure, responds with
SdkError<DescribeRootFoldersError>
Constructs a fluent builder for the DescribeUsers
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
organization_id(impl Into<String>)
/set_organization_id(Option<String>)
:The ID of the organization.
user_ids(impl Into<String>)
/set_user_ids(Option<String>)
:The IDs of the users.
query(impl Into<String>)
/set_query(Option<String>)
:A query to filter users by user name.
include(UserFilterType)
/set_include(Option<UserFilterType>)
:The state of the users. Specify “ALL” to include inactive users.
order(OrderType)
/set_order(Option<OrderType>)
:The order for the results.
sort(UserSortType)
/set_sort(Option<UserSortType>)
:The sorting criteria.
marker(impl Into<String>)
/set_marker(Option<String>)
:The marker for the next set of results. (You received this marker from a previous call.)
limit(i32)
/set_limit(Option<i32>)
:The maximum number of items to return.
fields(impl Into<String>)
/set_fields(Option<String>)
:A comma-separated list of values. Specify “STORAGE_METADATA” to include the user storage quota and utilization information.
- On success, responds with
DescribeUsersOutput
with field(s):users(Option<Vec<User>>)
:The users.
total_number_of_users(Option<i64>)
:The total number of users included in the results.
marker(Option<String>)
:The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
- On failure, responds with
SdkError<DescribeUsersError>
Constructs a fluent builder for the GetCurrentUser
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token.
- On success, responds with
GetCurrentUserOutput
with field(s):user(Option<User>)
:Metadata of the user.
- On failure, responds with
SdkError<GetCurrentUserError>
Constructs a fluent builder for the GetDocument
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
document_id(impl Into<String>)
/set_document_id(Option<String>)
:The ID of the document.
include_custom_metadata(bool)
/set_include_custom_metadata(bool)
:Set this to
TRUE
to include custom metadata in the response.
- On success, responds with
GetDocumentOutput
with field(s):metadata(Option<DocumentMetadata>)
:The metadata details of the document.
custom_metadata(Option<HashMap<String, String>>)
:The custom metadata on the document.
- On failure, responds with
SdkError<GetDocumentError>
Constructs a fluent builder for the GetDocumentPath
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
document_id(impl Into<String>)
/set_document_id(Option<String>)
:The ID of the document.
limit(i32)
/set_limit(Option<i32>)
:The maximum number of levels in the hierarchy to return.
fields(impl Into<String>)
/set_fields(Option<String>)
:A comma-separated list of values. Specify
NAME
to include the names of the parent folders.marker(impl Into<String>)
/set_marker(Option<String>)
:This value is not supported.
- On success, responds with
GetDocumentPathOutput
with field(s):path(Option<ResourcePath>)
:The path information.
- On failure, responds with
SdkError<GetDocumentPathError>
Constructs a fluent builder for the GetDocumentVersion
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
document_id(impl Into<String>)
/set_document_id(Option<String>)
:The ID of the document.
version_id(impl Into<String>)
/set_version_id(Option<String>)
:The version ID of the document.
fields(impl Into<String>)
/set_fields(Option<String>)
:A comma-separated list of values. Specify “SOURCE” to include a URL for the source document.
include_custom_metadata(bool)
/set_include_custom_metadata(bool)
:Set this to TRUE to include custom metadata in the response.
- On success, responds with
GetDocumentVersionOutput
with field(s):metadata(Option<DocumentVersionMetadata>)
:The version metadata.
custom_metadata(Option<HashMap<String, String>>)
:The custom metadata on the document version.
- On failure, responds with
SdkError<GetDocumentVersionError>
Constructs a fluent builder for the GetFolder
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
folder_id(impl Into<String>)
/set_folder_id(Option<String>)
:The ID of the folder.
include_custom_metadata(bool)
/set_include_custom_metadata(bool)
:Set to TRUE to include custom metadata in the response.
- On success, responds with
GetFolderOutput
with field(s):metadata(Option<FolderMetadata>)
:The metadata of the folder.
custom_metadata(Option<HashMap<String, String>>)
:The custom metadata on the folder.
- On failure, responds with
SdkError<GetFolderError>
Constructs a fluent builder for the GetFolderPath
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
folder_id(impl Into<String>)
/set_folder_id(Option<String>)
:The ID of the folder.
limit(i32)
/set_limit(Option<i32>)
:The maximum number of levels in the hierarchy to return.
fields(impl Into<String>)
/set_fields(Option<String>)
:A comma-separated list of values. Specify “NAME” to include the names of the parent folders.
marker(impl Into<String>)
/set_marker(Option<String>)
:This value is not supported.
- On success, responds with
GetFolderPathOutput
with field(s):path(Option<ResourcePath>)
:The path information.
- On failure, responds with
SdkError<GetFolderPathError>
Constructs a fluent builder for the GetResources
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:The Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
user_id(impl Into<String>)
/set_user_id(Option<String>)
:The user ID for the resource collection. This is a required field for accessing the API operation using IAM credentials.
collection_type(ResourceCollectionType)
/set_collection_type(Option<ResourceCollectionType>)
:The collection type.
limit(i32)
/set_limit(Option<i32>)
:The maximum number of resources to return.
marker(impl Into<String>)
/set_marker(Option<String>)
:The marker for the next set of results. This marker was received from a previous call.
- On success, responds with
GetResourcesOutput
with field(s):folders(Option<Vec<FolderMetadata>>)
:The folders in the specified folder.
documents(Option<Vec<DocumentMetadata>>)
:The documents in the specified collection.
marker(Option<String>)
:The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
- On failure, responds with
SdkError<GetResourcesError>
Constructs a fluent builder for the InitiateDocumentVersionUpload
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
id(impl Into<String>)
/set_id(Option<String>)
:The ID of the document.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the document.
content_created_timestamp(DateTime)
/set_content_created_timestamp(Option<DateTime>)
:The timestamp when the content of the document was originally created.
content_modified_timestamp(DateTime)
/set_content_modified_timestamp(Option<DateTime>)
:The timestamp when the content of the document was modified.
content_type(impl Into<String>)
/set_content_type(Option<String>)
:The content type of the document.
document_size_in_bytes(i64)
/set_document_size_in_bytes(Option<i64>)
:The size of the document, in bytes.
parent_folder_id(impl Into<String>)
/set_parent_folder_id(Option<String>)
:The ID of the parent folder.
- On success, responds with
InitiateDocumentVersionUploadOutput
with field(s):metadata(Option<DocumentMetadata>)
:The document metadata.
upload_metadata(Option<UploadMetadata>)
:The upload metadata.
- On failure, responds with
SdkError<InitiateDocumentVersionUploadError>
Constructs a fluent builder for the RemoveAllResourcePermissions
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
resource_id(impl Into<String>)
/set_resource_id(Option<String>)
:The ID of the resource.
- On success, responds with
RemoveAllResourcePermissionsOutput
- On failure, responds with
SdkError<RemoveAllResourcePermissionsError>
Constructs a fluent builder for the RemoveResourcePermission
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
resource_id(impl Into<String>)
/set_resource_id(Option<String>)
:The ID of the resource.
principal_id(impl Into<String>)
/set_principal_id(Option<String>)
:The principal ID of the resource.
principal_type(PrincipalType)
/set_principal_type(Option<PrincipalType>)
:The principal type of the resource.
- On success, responds with
RemoveResourcePermissionOutput
- On failure, responds with
SdkError<RemoveResourcePermissionError>
Constructs a fluent builder for the UpdateDocument
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
document_id(impl Into<String>)
/set_document_id(Option<String>)
:The ID of the document.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the document.
parent_folder_id(impl Into<String>)
/set_parent_folder_id(Option<String>)
:The ID of the parent folder.
resource_state(ResourceStateType)
/set_resource_state(Option<ResourceStateType>)
:The resource state of the document. Only ACTIVE and RECYCLED are supported.
- On success, responds with
UpdateDocumentOutput
- On failure, responds with
SdkError<UpdateDocumentError>
Constructs a fluent builder for the UpdateDocumentVersion
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
document_id(impl Into<String>)
/set_document_id(Option<String>)
:The ID of the document.
version_id(impl Into<String>)
/set_version_id(Option<String>)
:The version ID of the document.
version_status(DocumentVersionStatus)
/set_version_status(Option<DocumentVersionStatus>)
:The status of the version.
- On success, responds with
UpdateDocumentVersionOutput
- On failure, responds with
SdkError<UpdateDocumentVersionError>
Constructs a fluent builder for the UpdateFolder
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
folder_id(impl Into<String>)
/set_folder_id(Option<String>)
:The ID of the folder.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the folder.
parent_folder_id(impl Into<String>)
/set_parent_folder_id(Option<String>)
:The ID of the parent folder.
resource_state(ResourceStateType)
/set_resource_state(Option<ResourceStateType>)
:The resource state of the folder. Only ACTIVE and RECYCLED are accepted values from the API.
- On success, responds with
UpdateFolderOutput
- On failure, responds with
SdkError<UpdateFolderError>
Constructs a fluent builder for the UpdateUser
operation.
- The fluent builder is configurable:
authentication_token(impl Into<String>)
/set_authentication_token(Option<String>)
:Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
user_id(impl Into<String>)
/set_user_id(Option<String>)
:The ID of the user.
given_name(impl Into<String>)
/set_given_name(Option<String>)
:The given name of the user.
surname(impl Into<String>)
/set_surname(Option<String>)
:The surname of the user.
r#type(UserType)
/set_type(Option<UserType>)
:The type of the user.
storage_rule(StorageRuleType)
/set_storage_rule(Option<StorageRuleType>)
:The amount of storage for the user.
time_zone_id(impl Into<String>)
/set_time_zone_id(Option<String>)
:The time zone ID of the user.
locale(LocaleType)
/set_locale(Option<LocaleType>)
:The locale of the user.
grant_poweruser_privileges(BooleanEnumType)
/set_grant_poweruser_privileges(Option<BooleanEnumType>)
:Boolean value to determine whether the user is granted Poweruser privileges.
- On success, responds with
UpdateUserOutput
with field(s):user(Option<User>)
:The user information.
- On failure, responds with
SdkError<UpdateUserError>
Creates a client with the given service config and connector override.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for Client<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for Client<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more