Documentation
¶
Overview ¶
Package workdocs provides the API client, operations, and parameter types for Amazon WorkDocs.
The Amazon WorkDocs API is designed for the following use cases:
File Migration: File migration applications are supported for users who want to migrate their files from an on-premises or off-premises file system or service. Users can insert files into a user directory structure, as well as allow for basic metadata changes, such as modifications to the permissions of files.
Security: Support security applications are supported for users who have additional security needs, such as antivirus or data loss prevention. The API actions, along with CloudTrail, allow these applications to detect when changes occur in Amazon WorkDocs. Then, the application can take the necessary actions and replace the target file. If the target file violates the policy, the application can also choose to email the user.
eDiscovery/Analytics: General administrative applications are supported, such as eDiscovery and analytics. These applications can choose to mimic or record the actions in an Amazon WorkDocs site, along with CloudTrail, to replicate data for eDiscovery, backup, or analytical applications.
All Amazon WorkDocs API actions are Amazon authenticated and certificate-signed. They not only require the use of the Amazon Web Services SDK, but also allow for the exclusive use of IAM users and roles to help facilitate access, trust, and permission policies. By creating a role and allowing an IAM user to access the Amazon WorkDocs site, the IAM user gains full administrative visibility into the entire Amazon WorkDocs site (or as set in the IAM policy). This includes, but is not limited to, the ability to modify file permissions and upload any file to any user. This allows developers to perform the three use cases above, as well as give users the ability to grant access on a selective basis using the IAM model.
The pricing for Amazon WorkDocs APIs varies depending on the API call type for these actions:
READ (Get*)
WRITE (Activate*, Add*, Create*, Deactivate*, Initiate*, Update*)
LIST (Describe*)
DELETE*, CANCEL
For information about Amazon WorkDocs API pricing, see Amazon WorkDocs Pricing.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AbortDocumentVersionUploadInput
- type AbortDocumentVersionUploadOutput
- type ActivateUserInput
- type ActivateUserOutput
- type AddResourcePermissionsInput
- type AddResourcePermissionsOutput
- type AuthResolverParameters
- type AuthSchemeResolver
- type Client
- func (c *Client) AbortDocumentVersionUpload(ctx context.Context, params *AbortDocumentVersionUploadInput, ...) (*AbortDocumentVersionUploadOutput, error)
- func (c *Client) ActivateUser(ctx context.Context, params *ActivateUserInput, optFns ...func(*Options)) (*ActivateUserOutput, error)
- func (c *Client) AddResourcePermissions(ctx context.Context, params *AddResourcePermissionsInput, ...) (*AddResourcePermissionsOutput, error)
- func (c *Client) CreateComment(ctx context.Context, params *CreateCommentInput, optFns ...func(*Options)) (*CreateCommentOutput, error)
- func (c *Client) CreateCustomMetadata(ctx context.Context, params *CreateCustomMetadataInput, ...) (*CreateCustomMetadataOutput, error)
- func (c *Client) CreateFolder(ctx context.Context, params *CreateFolderInput, optFns ...func(*Options)) (*CreateFolderOutput, error)
- func (c *Client) CreateLabels(ctx context.Context, params *CreateLabelsInput, optFns ...func(*Options)) (*CreateLabelsOutput, error)
- func (c *Client) CreateNotificationSubscription(ctx context.Context, params *CreateNotificationSubscriptionInput, ...) (*CreateNotificationSubscriptionOutput, error)
- func (c *Client) CreateUser(ctx context.Context, params *CreateUserInput, optFns ...func(*Options)) (*CreateUserOutput, error)
- func (c *Client) DeactivateUser(ctx context.Context, params *DeactivateUserInput, optFns ...func(*Options)) (*DeactivateUserOutput, error)
- func (c *Client) DeleteComment(ctx context.Context, params *DeleteCommentInput, optFns ...func(*Options)) (*DeleteCommentOutput, error)
- func (c *Client) DeleteCustomMetadata(ctx context.Context, params *DeleteCustomMetadataInput, ...) (*DeleteCustomMetadataOutput, error)
- func (c *Client) DeleteDocument(ctx context.Context, params *DeleteDocumentInput, optFns ...func(*Options)) (*DeleteDocumentOutput, error)
- func (c *Client) DeleteDocumentVersion(ctx context.Context, params *DeleteDocumentVersionInput, ...) (*DeleteDocumentVersionOutput, error)
- func (c *Client) DeleteFolder(ctx context.Context, params *DeleteFolderInput, optFns ...func(*Options)) (*DeleteFolderOutput, error)
- func (c *Client) DeleteFolderContents(ctx context.Context, params *DeleteFolderContentsInput, ...) (*DeleteFolderContentsOutput, error)
- func (c *Client) DeleteLabels(ctx context.Context, params *DeleteLabelsInput, optFns ...func(*Options)) (*DeleteLabelsOutput, error)
- func (c *Client) DeleteNotificationSubscription(ctx context.Context, params *DeleteNotificationSubscriptionInput, ...) (*DeleteNotificationSubscriptionOutput, error)
- func (c *Client) DeleteUser(ctx context.Context, params *DeleteUserInput, optFns ...func(*Options)) (*DeleteUserOutput, error)
- func (c *Client) DescribeActivities(ctx context.Context, params *DescribeActivitiesInput, optFns ...func(*Options)) (*DescribeActivitiesOutput, error)
- func (c *Client) DescribeComments(ctx context.Context, params *DescribeCommentsInput, optFns ...func(*Options)) (*DescribeCommentsOutput, error)
- func (c *Client) DescribeDocumentVersions(ctx context.Context, params *DescribeDocumentVersionsInput, ...) (*DescribeDocumentVersionsOutput, error)
- func (c *Client) DescribeFolderContents(ctx context.Context, params *DescribeFolderContentsInput, ...) (*DescribeFolderContentsOutput, error)
- func (c *Client) DescribeGroups(ctx context.Context, params *DescribeGroupsInput, optFns ...func(*Options)) (*DescribeGroupsOutput, error)
- func (c *Client) DescribeNotificationSubscriptions(ctx context.Context, params *DescribeNotificationSubscriptionsInput, ...) (*DescribeNotificationSubscriptionsOutput, error)
- func (c *Client) DescribeResourcePermissions(ctx context.Context, params *DescribeResourcePermissionsInput, ...) (*DescribeResourcePermissionsOutput, error)
- func (c *Client) DescribeRootFolders(ctx context.Context, params *DescribeRootFoldersInput, ...) (*DescribeRootFoldersOutput, error)
- func (c *Client) DescribeUsers(ctx context.Context, params *DescribeUsersInput, optFns ...func(*Options)) (*DescribeUsersOutput, error)
- func (c *Client) GetCurrentUser(ctx context.Context, params *GetCurrentUserInput, optFns ...func(*Options)) (*GetCurrentUserOutput, error)
- func (c *Client) GetDocument(ctx context.Context, params *GetDocumentInput, optFns ...func(*Options)) (*GetDocumentOutput, error)
- func (c *Client) GetDocumentPath(ctx context.Context, params *GetDocumentPathInput, optFns ...func(*Options)) (*GetDocumentPathOutput, error)
- func (c *Client) GetDocumentVersion(ctx context.Context, params *GetDocumentVersionInput, optFns ...func(*Options)) (*GetDocumentVersionOutput, error)
- func (c *Client) GetFolder(ctx context.Context, params *GetFolderInput, optFns ...func(*Options)) (*GetFolderOutput, error)
- func (c *Client) GetFolderPath(ctx context.Context, params *GetFolderPathInput, optFns ...func(*Options)) (*GetFolderPathOutput, error)
- func (c *Client) GetResources(ctx context.Context, params *GetResourcesInput, optFns ...func(*Options)) (*GetResourcesOutput, error)
- func (c *Client) InitiateDocumentVersionUpload(ctx context.Context, params *InitiateDocumentVersionUploadInput, ...) (*InitiateDocumentVersionUploadOutput, error)
- func (c *Client) Options() Options
- func (c *Client) RemoveAllResourcePermissions(ctx context.Context, params *RemoveAllResourcePermissionsInput, ...) (*RemoveAllResourcePermissionsOutput, error)
- func (c *Client) RemoveResourcePermission(ctx context.Context, params *RemoveResourcePermissionInput, ...) (*RemoveResourcePermissionOutput, error)
- func (c *Client) RestoreDocumentVersions(ctx context.Context, params *RestoreDocumentVersionsInput, ...) (*RestoreDocumentVersionsOutput, error)
- func (c *Client) SearchResources(ctx context.Context, params *SearchResourcesInput, optFns ...func(*Options)) (*SearchResourcesOutput, error)
- func (c *Client) UpdateDocument(ctx context.Context, params *UpdateDocumentInput, optFns ...func(*Options)) (*UpdateDocumentOutput, error)
- func (c *Client) UpdateDocumentVersion(ctx context.Context, params *UpdateDocumentVersionInput, ...) (*UpdateDocumentVersionOutput, error)
- func (c *Client) UpdateFolder(ctx context.Context, params *UpdateFolderInput, optFns ...func(*Options)) (*UpdateFolderOutput, error)
- func (c *Client) UpdateUser(ctx context.Context, params *UpdateUserInput, optFns ...func(*Options)) (*UpdateUserOutput, error)
- type CreateCommentInput
- type CreateCommentOutput
- type CreateCustomMetadataInput
- type CreateCustomMetadataOutput
- type CreateFolderInput
- type CreateFolderOutput
- type CreateLabelsInput
- type CreateLabelsOutput
- type CreateNotificationSubscriptionInput
- type CreateNotificationSubscriptionOutput
- type CreateUserInput
- type CreateUserOutput
- type DeactivateUserInput
- type DeactivateUserOutput
- type DeleteCommentInput
- type DeleteCommentOutput
- type DeleteCustomMetadataInput
- type DeleteCustomMetadataOutput
- type DeleteDocumentInput
- type DeleteDocumentOutput
- type DeleteDocumentVersionInput
- type DeleteDocumentVersionOutput
- type DeleteFolderContentsInput
- type DeleteFolderContentsOutput
- type DeleteFolderInput
- type DeleteFolderOutput
- type DeleteLabelsInput
- type DeleteLabelsOutput
- type DeleteNotificationSubscriptionInput
- type DeleteNotificationSubscriptionOutput
- type DeleteUserInput
- type DeleteUserOutput
- type DescribeActivitiesAPIClient
- type DescribeActivitiesInput
- type DescribeActivitiesOutput
- type DescribeActivitiesPaginator
- type DescribeActivitiesPaginatorOptions
- type DescribeCommentsAPIClient
- type DescribeCommentsInput
- type DescribeCommentsOutput
- type DescribeCommentsPaginator
- type DescribeCommentsPaginatorOptions
- type DescribeDocumentVersionsAPIClient
- type DescribeDocumentVersionsInput
- type DescribeDocumentVersionsOutput
- type DescribeDocumentVersionsPaginator
- type DescribeDocumentVersionsPaginatorOptions
- type DescribeFolderContentsAPIClient
- type DescribeFolderContentsInput
- type DescribeFolderContentsOutput
- type DescribeFolderContentsPaginator
- type DescribeFolderContentsPaginatorOptions
- type DescribeGroupsAPIClient
- type DescribeGroupsInput
- type DescribeGroupsOutput
- type DescribeGroupsPaginator
- type DescribeGroupsPaginatorOptions
- type DescribeNotificationSubscriptionsAPIClient
- type DescribeNotificationSubscriptionsInput
- type DescribeNotificationSubscriptionsOutput
- type DescribeNotificationSubscriptionsPaginator
- type DescribeNotificationSubscriptionsPaginatorOptions
- type DescribeResourcePermissionsAPIClient
- type DescribeResourcePermissionsInput
- type DescribeResourcePermissionsOutput
- type DescribeResourcePermissionsPaginator
- type DescribeResourcePermissionsPaginatorOptions
- type DescribeRootFoldersAPIClient
- type DescribeRootFoldersInput
- type DescribeRootFoldersOutput
- type DescribeRootFoldersPaginator
- type DescribeRootFoldersPaginatorOptions
- type DescribeUsersAPIClient
- type DescribeUsersInput
- type DescribeUsersOutput
- type DescribeUsersPaginator
- type DescribeUsersPaginatorOptions
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetCurrentUserInput
- type GetCurrentUserOutput
- type GetDocumentInput
- type GetDocumentOutput
- type GetDocumentPathInput
- type GetDocumentPathOutput
- type GetDocumentVersionInput
- type GetDocumentVersionOutput
- type GetFolderInput
- type GetFolderOutput
- type GetFolderPathInput
- type GetFolderPathOutput
- type GetResourcesInput
- type GetResourcesOutput
- type HTTPClient
- type HTTPSignerV4
- type InitiateDocumentVersionUploadInput
- type InitiateDocumentVersionUploadOutput
- type Options
- type RemoveAllResourcePermissionsInput
- type RemoveAllResourcePermissionsOutput
- type RemoveResourcePermissionInput
- type RemoveResourcePermissionOutput
- type ResolveEndpoint
- type RestoreDocumentVersionsInput
- type RestoreDocumentVersionsOutput
- type SearchResourcesAPIClient
- type SearchResourcesInput
- type SearchResourcesOutput
- type SearchResourcesPaginator
- type SearchResourcesPaginatorOptions
- type UpdateDocumentInput
- type UpdateDocumentOutput
- type UpdateDocumentVersionInput
- type UpdateDocumentVersionOutput
- type UpdateFolderInput
- type UpdateFolderOutput
- type UpdateUserInput
- type UpdateUserOutput
Constants ¶
const ServiceAPIVersion = "2016-05-01"
const ServiceID = "WorkDocs"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.
To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AbortDocumentVersionUploadInput ¶
type AbortDocumentVersionUploadInput struct { // The ID of the document. // // This member is required. DocumentId *string // The ID of the version. // // This member is required. VersionId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // contains filtered or unexported fields }
type AbortDocumentVersionUploadOutput ¶
type AbortDocumentVersionUploadOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ActivateUserInput ¶
type ActivateUserInput struct { // The ID of the user. // // This member is required. UserId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // contains filtered or unexported fields }
type ActivateUserOutput ¶
type ActivateUserOutput struct { // The user information. User *types.User // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type AddResourcePermissionsInput ¶
type AddResourcePermissionsInput struct { // The users, groups, or organization being granted permission. // // This member is required. Principals []types.SharePrincipal // The ID of the resource. // // This member is required. ResourceId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The notification options. NotificationOptions *types.NotificationOptions // contains filtered or unexported fields }
type AddResourcePermissionsOutput ¶
type AddResourcePermissionsOutput struct { types.ShareResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }ShareResults []
type AuthResolverParameters ¶
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for Amazon WorkDocs.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) AbortDocumentVersionUpload ¶
func (c *Client) AbortDocumentVersionUpload(ctx context.Context, params *AbortDocumentVersionUploadInput, optFns ...func(*Options)) (*AbortDocumentVersionUploadOutput, error)
Aborts the upload of the specified document version that was previously initiated by InitiateDocumentVersionUpload. The client should make this call only when it no longer intends to upload the document version, or fails to do so.
func (*Client) ActivateUser ¶
func (c *Client) ActivateUser(ctx context.Context, params *ActivateUserInput, optFns ...func(*Options)) (*ActivateUserOutput, error)
Activates the specified user. Only active users can access Amazon WorkDocs.
func (*Client) AddResourcePermissions ¶
func (c *Client) AddResourcePermissions(ctx context.Context, params *AddResourcePermissionsInput, optFns ...func(*Options)) (*AddResourcePermissionsOutput, error)
Creates a set of permissions for the specified folder or document. The resource permissions are overwritten if the principals already have different permissions.
func (*Client) CreateComment ¶
func (c *Client) CreateComment(ctx context.Context, params *CreateCommentInput, optFns ...func(*Options)) (*CreateCommentOutput, error)
Adds a new comment to the specified document version.
func (*Client) CreateCustomMetadata ¶
func (c *Client) CreateCustomMetadata(ctx context.Context, params *CreateCustomMetadataInput, optFns ...func(*Options)) (*CreateCustomMetadataOutput, error)
Adds one or more custom properties to the specified resource (a folder, document, or version).
func (*Client) CreateFolder ¶
func (c *Client) CreateFolder(ctx context.Context, params *CreateFolderInput, optFns ...func(*Options)) (*CreateFolderOutput, error)
Creates a folder with the specified name and parent folder.
func (*Client) CreateLabels ¶
func (c *Client) CreateLabels(ctx context.Context, params *CreateLabelsInput, optFns ...func(*Options)) (*CreateLabelsOutput, error)
Adds the specified list of labels to the given resource (a document or folder)
func (*Client) CreateNotificationSubscription ¶
func (c *Client) CreateNotificationSubscription(ctx context.Context, params *CreateNotificationSubscriptionInput, optFns ...func(*Options)) (*CreateNotificationSubscriptionOutput, error)
Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a confirmation message, and must confirm the subscription.
For more information, see Setting up notifications for an IAM user or role in the Amazon WorkDocs Developer Guide.
func (*Client) CreateUser ¶
func (c *Client) CreateUser(ctx context.Context, params *CreateUserInput, optFns ...func(*Options)) (*CreateUserOutput, error)
Creates a user in a Simple AD or Microsoft AD directory. The status of a newly created user is "ACTIVE". New users can access Amazon WorkDocs.
func (*Client) DeactivateUser ¶
func (c *Client) DeactivateUser(ctx context.Context, params *DeactivateUserInput, optFns ...func(*Options)) (*DeactivateUserOutput, error)
Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.
func (*Client) DeleteComment ¶
func (c *Client) DeleteComment(ctx context.Context, params *DeleteCommentInput, optFns ...func(*Options)) (*DeleteCommentOutput, error)
Deletes the specified comment from the document version.
func (*Client) DeleteCustomMetadata ¶
func (c *Client) DeleteCustomMetadata(ctx context.Context, params *DeleteCustomMetadataInput, optFns ...func(*Options)) (*DeleteCustomMetadataOutput, error)
Deletes custom metadata from the specified resource.
func (*Client) DeleteDocument ¶
func (c *Client) DeleteDocument(ctx context.Context, params *DeleteDocumentInput, optFns ...func(*Options)) (*DeleteDocumentOutput, error)
Permanently deletes the specified document and its associated metadata.
func (*Client) DeleteDocumentVersion ¶
func (c *Client) DeleteDocumentVersion(ctx context.Context, params *DeleteDocumentVersionInput, optFns ...func(*Options)) (*DeleteDocumentVersionOutput, error)
Deletes a specific version of a document.
func (*Client) DeleteFolder ¶
func (c *Client) DeleteFolder(ctx context.Context, params *DeleteFolderInput, optFns ...func(*Options)) (*DeleteFolderOutput, error)
Permanently deletes the specified folder and its contents.
func (*Client) DeleteFolderContents ¶
func (c *Client) DeleteFolderContents(ctx context.Context, params *DeleteFolderContentsInput, optFns ...func(*Options)) (*DeleteFolderContentsOutput, error)
Deletes the contents of the specified folder.
func (*Client) DeleteLabels ¶
func (c *Client) DeleteLabels(ctx context.Context, params *DeleteLabelsInput, optFns ...func(*Options)) (*DeleteLabelsOutput, error)
Deletes the specified list of labels from a resource.
func (*Client) DeleteNotificationSubscription ¶
func (c *Client) DeleteNotificationSubscription(ctx context.Context, params *DeleteNotificationSubscriptionInput, optFns ...func(*Options)) (*DeleteNotificationSubscriptionOutput, error)
Deletes the specified subscription from the specified organization.
func (*Client) DeleteUser ¶
func (c *Client) DeleteUser(ctx context.Context, params *DeleteUserInput, optFns ...func(*Options)) (*DeleteUserOutput, error)
Deletes the specified user from a Simple AD or Microsoft AD directory.
Deleting a user immediately and permanently deletes all content in that user's folder structure. Site retention policies do NOT apply to this type of deletion.
func (*Client) DescribeActivities ¶
func (c *Client) DescribeActivities(ctx context.Context, params *DescribeActivitiesInput, optFns ...func(*Options)) (*DescribeActivitiesOutput, error)
Describes the user activities in a specified time period.
func (*Client) DescribeComments ¶
func (c *Client) DescribeComments(ctx context.Context, params *DescribeCommentsInput, optFns ...func(*Options)) (*DescribeCommentsOutput, error)
List all the comments for the specified document version.
func (*Client) DescribeDocumentVersions ¶
func (c *Client) DescribeDocumentVersions(ctx context.Context, params *DescribeDocumentVersionsInput, optFns ...func(*Options)) (*DescribeDocumentVersionsOutput, error)
Retrieves the document versions for the specified document.
By default, only active versions are returned.
func (*Client) DescribeFolderContents ¶
func (c *Client) DescribeFolderContents(ctx context.Context, params *DescribeFolderContentsInput, optFns ...func(*Options)) (*DescribeFolderContentsOutput, error)
Describes the contents of the specified folder, including its documents and subfolders.
By default, Amazon WorkDocs returns the first 100 active document and folder metadata items. If there are more results, the response includes a marker that you can use to request the next set of results. You can also request initialized documents.
func (*Client) DescribeGroups ¶
func (c *Client) DescribeGroups(ctx context.Context, params *DescribeGroupsInput, optFns ...func(*Options)) (*DescribeGroupsOutput, error)
Describes the groups specified by the query. Groups are defined by the underlying Active Directory.
func (*Client) DescribeNotificationSubscriptions ¶
func (c *Client) DescribeNotificationSubscriptions(ctx context.Context, params *DescribeNotificationSubscriptionsInput, optFns ...func(*Options)) (*DescribeNotificationSubscriptionsOutput, error)
Lists the specified notification subscriptions.
func (*Client) DescribeResourcePermissions ¶
func (c *Client) DescribeResourcePermissions(ctx context.Context, params *DescribeResourcePermissionsInput, optFns ...func(*Options)) (*DescribeResourcePermissionsOutput, error)
Describes the permissions of a specified resource.
func (*Client) DescribeRootFolders ¶
func (c *Client) DescribeRootFolders(ctx context.Context, params *DescribeRootFoldersInput, optFns ...func(*Options)) (*DescribeRootFoldersOutput, error)
Describes the current user's special folders; the RootFolder and the RecycleBin . RootFolder is the root of user's files and folders and RecycleBin is the root of recycled items. This is not a valid action for SigV4 (administrative API) clients.
This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applicationsin the Amazon WorkDocs Developer Guide.
func (*Client) DescribeUsers ¶
func (c *Client) DescribeUsers(ctx context.Context, params *DescribeUsersInput, optFns ...func(*Options)) (*DescribeUsersOutput, error)
Describes the specified users. You can describe all users or filter the results (for example, by status or organization).
By default, Amazon WorkDocs returns the first 24 active or pending users. If there are more results, the response includes a marker that you can use to request the next set of results.
func (*Client) GetCurrentUser ¶
func (c *Client) GetCurrentUser(ctx context.Context, params *GetCurrentUserInput, optFns ...func(*Options)) (*GetCurrentUserOutput, error)
Retrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients.
This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applicationsin the Amazon WorkDocs Developer Guide.
func (*Client) GetDocument ¶
func (c *Client) GetDocument(ctx context.Context, params *GetDocumentInput, optFns ...func(*Options)) (*GetDocumentOutput, error)
Retrieves details of a document.
func (*Client) GetDocumentPath ¶
func (c *Client) GetDocumentPath(ctx context.Context, params *GetDocumentPathInput, optFns ...func(*Options)) (*GetDocumentPathOutput, error)
Retrieves the path information (the hierarchy from the root folder) for the requested document.
By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested document and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the names of the parent folders.
func (*Client) GetDocumentVersion ¶
func (c *Client) GetDocumentVersion(ctx context.Context, params *GetDocumentVersionInput, optFns ...func(*Options)) (*GetDocumentVersionOutput, error)
Retrieves version metadata for the specified document.
func (*Client) GetFolder ¶
func (c *Client) GetFolder(ctx context.Context, params *GetFolderInput, optFns ...func(*Options)) (*GetFolderOutput, error)
Retrieves the metadata of the specified folder.
func (*Client) GetFolderPath ¶
func (c *Client) GetFolderPath(ctx context.Context, params *GetFolderPathInput, optFns ...func(*Options)) (*GetFolderPathOutput, error)
Retrieves the path information (the hierarchy from the root folder) for the specified folder.
By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested folder and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the parent folder names.
func (*Client) GetResources ¶
func (c *Client) GetResources(ctx context.Context, params *GetResourcesInput, optFns ...func(*Options)) (*GetResourcesOutput, error)
Retrieves a collection of resources, including folders and documents. The only CollectionType supported is SHARED_WITH_ME .
func (*Client) InitiateDocumentVersionUpload ¶
func (c *Client) InitiateDocumentVersionUpload(ctx context.Context, params *InitiateDocumentVersionUploadInput, optFns ...func(*Options)) (*InitiateDocumentVersionUploadOutput, error)
Creates a new document object and version object.
The client specifies the parent folder ID and name of the document to upload. The ID is optionally specified when creating a new version of an existing document. This is the first step to upload a document. Next, upload the document to the URL returned from the call, and then call UpdateDocumentVersion.
To cancel the document upload, call AbortDocumentVersionUpload.
func (*Client) Options ¶
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
func (*Client) RemoveAllResourcePermissions ¶
func (c *Client) RemoveAllResourcePermissions(ctx context.Context, params *RemoveAllResourcePermissionsInput, optFns ...func(*Options)) (*RemoveAllResourcePermissionsOutput, error)
Removes all the permissions from the specified resource.
func (*Client) RemoveResourcePermission ¶
func (c *Client) RemoveResourcePermission(ctx context.Context, params *RemoveResourcePermissionInput, optFns ...func(*Options)) (*RemoveResourcePermissionOutput, error)
Removes the permission for the specified principal from the specified resource.
func (*Client) RestoreDocumentVersions ¶
func (c *Client) RestoreDocumentVersions(ctx context.Context, params *RestoreDocumentVersionsInput, optFns ...func(*Options)) (*RestoreDocumentVersionsOutput, error)
Recovers a deleted version of an Amazon WorkDocs document.
func (*Client) SearchResources ¶
func (c *Client) SearchResources(ctx context.Context, params *SearchResourcesInput, optFns ...func(*Options)) (*SearchResourcesOutput, error)
Searches metadata and the content of folders, documents, document versions, and comments.
func (*Client) UpdateDocument ¶
func (c *Client) UpdateDocument(ctx context.Context, params *UpdateDocumentInput, optFns ...func(*Options)) (*UpdateDocumentOutput, error)
Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.
func (*Client) UpdateDocumentVersion ¶
func (c *Client) UpdateDocumentVersion(ctx context.Context, params *UpdateDocumentVersionInput, optFns ...func(*Options)) (*UpdateDocumentVersionOutput, error)
Changes the status of the document version to ACTIVE.
Amazon WorkDocs also sets its document container to ACTIVE. This is the last step in a document upload, after the client uploads the document to an S3-presigned URL returned by InitiateDocumentVersionUpload.
func (*Client) UpdateFolder ¶
func (c *Client) UpdateFolder(ctx context.Context, params *UpdateFolderInput, optFns ...func(*Options)) (*UpdateFolderOutput, error)
Updates the specified attributes of the specified folder. The user must have access to both the folder and its parent folder, if applicable.
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(ctx context.Context, params *UpdateUserInput, optFns ...func(*Options)) (*UpdateUserOutput, error)
Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.
type CreateCommentInput ¶
type CreateCommentInput struct { // The ID of the document. // // This member is required. DocumentId *string // The text of the comment. // // This member is required. Text *string // The ID of the document version. // // This member is required. VersionId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // Set this parameter to TRUE to send an email out to the document collaborators // after the comment is created. NotifyCollaborators bool // The ID of the parent comment. ParentId *string // The ID of the root comment in the thread. ThreadId *string // 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. Visibility types.CommentVisibilityType // contains filtered or unexported fields }
type CreateCommentOutput ¶
type CreateCommentOutput struct { // The comment that has been created. Comment *types.Comment // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateCustomMetadataInput ¶
type CreateCustomMetadataInput struct { // Custom metadata in the form of name-value pairs. // // This member is required. CustomMetadata map[string]string // The ID of the resource. // // This member is required. ResourceId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The ID of the version, if the custom metadata is being added to a document // version. VersionId *string // contains filtered or unexported fields }
type CreateCustomMetadataOutput ¶
type CreateCustomMetadataOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateFolderInput ¶
type CreateFolderInput struct { // The ID of the parent folder. // // This member is required. ParentFolderId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The name of the new folder. Name *string // contains filtered or unexported fields }
type CreateFolderOutput ¶
type CreateFolderOutput struct { // The metadata of the folder. Metadata *types.FolderMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateLabelsInput ¶
type CreateLabelsInput struct { // List of labels to add to the resource. // // This member is required. Labels []string // The ID of the resource. // // This member is required. ResourceId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // contains filtered or unexported fields }
type CreateLabelsOutput ¶
type CreateLabelsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateNotificationSubscriptionInput ¶
type CreateNotificationSubscriptionInput struct { // The endpoint to receive the notifications. If the protocol is HTTPS, the // endpoint is a URL that begins with https . // // This member is required. Endpoint *string // The ID of the organization. // // This member is required. OrganizationId *string // The protocol to use. The supported value is https, which delivers JSON-encoded // messages using HTTPS POST. // // This member is required. Protocol types.SubscriptionProtocolType // The notification type. // // This member is required. SubscriptionType types.SubscriptionType // contains filtered or unexported fields }
type CreateNotificationSubscriptionOutput ¶
type CreateNotificationSubscriptionOutput struct { // The subscription. Subscription *types.Subscription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateUserInput ¶
type CreateUserInput struct { // The given name of the user. // // This member is required. GivenName *string // The password of the user. // // This member is required. Password *string // The surname of the user. // // This member is required. Surname *string // The login name of the user. // // This member is required. Username *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The email address of the user. EmailAddress *string // The ID of the organization. OrganizationId *string // The amount of storage for the user. StorageRule *types.StorageRuleType // The time zone ID of the user. TimeZoneId *string // contains filtered or unexported fields }
type CreateUserOutput ¶
type CreateUserOutput struct { // The user information. User *types.User // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeactivateUserInput ¶
type DeactivateUserInput struct { // The ID of the user. // // This member is required. UserId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // contains filtered or unexported fields }
type DeactivateUserOutput ¶
type DeactivateUserOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteCommentInput ¶
type DeleteCommentInput struct { // The ID of the comment. // // This member is required. CommentId *string // The ID of the document. // // This member is required. DocumentId *string // The ID of the document version. // // This member is required. VersionId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // contains filtered or unexported fields }
type DeleteCommentOutput ¶
type DeleteCommentOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteCustomMetadataInput ¶
type DeleteCustomMetadataInput struct { // The ID of the resource, either a document or folder. // // This member is required. ResourceId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // Flag to indicate removal of all custom metadata properties from the specified // resource. DeleteAll bool // List of properties to remove. Keys []string // The ID of the version, if the custom metadata is being deleted from a document // version. VersionId *string // contains filtered or unexported fields }
type DeleteCustomMetadataOutput ¶
type DeleteCustomMetadataOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteDocumentInput ¶
type DeleteDocumentInput struct { // The ID of the document. // // This member is required. DocumentId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // contains filtered or unexported fields }
type DeleteDocumentOutput ¶
type DeleteDocumentOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteDocumentVersionInput ¶
type DeleteDocumentVersionInput struct { // Deletes all versions of a document prior to the current version. // // This member is required. DeletePriorVersions bool // The ID of the document associated with the version being deleted. // // This member is required. DocumentId *string // The ID of the version being deleted. // // This member is required. VersionId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // contains filtered or unexported fields }
type DeleteDocumentVersionOutput ¶
type DeleteDocumentVersionOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteFolderContentsInput ¶
type DeleteFolderContentsInput struct { // The ID of the folder. // // This member is required. FolderId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // contains filtered or unexported fields }
type DeleteFolderContentsOutput ¶
type DeleteFolderContentsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteFolderInput ¶
type DeleteFolderInput struct { // The ID of the folder. // // This member is required. FolderId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // contains filtered or unexported fields }
type DeleteFolderOutput ¶
type DeleteFolderOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteLabelsInput ¶
type DeleteLabelsInput struct { // The ID of the resource. // // This member is required. ResourceId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // Flag to request removal of all labels from the specified resource. DeleteAll bool // List of labels to delete from the resource. Labels []string // contains filtered or unexported fields }
type DeleteLabelsOutput ¶
type DeleteLabelsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteNotificationSubscriptionInput ¶
type DeleteNotificationSubscriptionOutput ¶
type DeleteNotificationSubscriptionOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteUserInput ¶
type DeleteUserInput struct { // The ID of the user. // // This member is required. UserId *string // Amazon WorkDocs authentication token. Do not set this field when using // administrative API actions, as in accessing the API using Amazon Web Services // credentials. AuthenticationToken *string // contains filtered or unexported fields }
type DeleteUserOutput ¶
type DeleteUserOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeActivitiesAPIClient ¶
type DescribeActivitiesAPIClient interface {
DescribeActivities(context.Context, *DescribeActivitiesInput, ...func(*Options)) (*DescribeActivitiesOutput, error)
}
DescribeActivitiesAPIClient is a client that implements the DescribeActivities operation.
type DescribeActivitiesInput ¶
type DescribeActivitiesInput struct { // Specifies which activity types to include in the response. If this field is // left empty, all activity types are returned. ActivityTypes *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The timestamp that determines the end time of the activities. The response // includes the activities performed before the specified timestamp. EndTime *time.Time // 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). IncludeIndirectActivities bool // The maximum number of items to return. Limit *int32 // The marker for the next set of results. Marker *string // The ID of the organization. This is a mandatory parameter when using // administrative API (SigV4) requests. OrganizationId *string // The document or folder ID for which to describe activity types. ResourceId *string // The timestamp that determines the starting time of the activities. The response // includes the activities performed after the specified timestamp. StartTime *time.Time // 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. UserId *string // contains filtered or unexported fields }
type DescribeActivitiesOutput ¶
type DescribeActivitiesOutput struct { // The marker for the next set of results. Marker *string // The list of activities for the specified user and time period. UserActivities []types.Activity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeActivitiesPaginator ¶
type DescribeActivitiesPaginator struct {
// contains filtered or unexported fields
}
DescribeActivitiesPaginator is a paginator for DescribeActivities
func NewDescribeActivitiesPaginator ¶
func NewDescribeActivitiesPaginator(client DescribeActivitiesAPIClient, params *DescribeActivitiesInput, optFns ...func(*DescribeActivitiesPaginatorOptions)) *DescribeActivitiesPaginator
NewDescribeActivitiesPaginator returns a new DescribeActivitiesPaginator
func (*DescribeActivitiesPaginator) HasMorePages ¶
func (p *DescribeActivitiesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeActivitiesPaginator) NextPage ¶
func (p *DescribeActivitiesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeActivitiesOutput, error)
NextPage retrieves the next DescribeActivities page.
type DescribeActivitiesPaginatorOptions ¶
type DescribeActivitiesPaginatorOptions struct { // The maximum number of items to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeActivitiesPaginatorOptions is the paginator options for DescribeActivities
type DescribeCommentsAPIClient ¶
type DescribeCommentsAPIClient interface {
DescribeComments(context.Context, *DescribeCommentsInput, ...func(*Options)) (*DescribeCommentsOutput, error)
}
DescribeCommentsAPIClient is a client that implements the DescribeComments operation.
type DescribeCommentsInput ¶
type DescribeCommentsInput struct { // The ID of the document. // // This member is required. DocumentId *string // The ID of the document version. // // This member is required. VersionId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The maximum number of items to return. Limit *int32 // The marker for the next set of results. This marker was received from a // previous call. Marker *string // contains filtered or unexported fields }
type DescribeCommentsOutput ¶
type DescribeCommentsOutput struct { // The list of comments for the specified document version. Comments []types.Comment // The marker for the next set of results. This marker was received from a // previous call. Marker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeCommentsPaginator ¶
type DescribeCommentsPaginator struct {
// contains filtered or unexported fields
}
DescribeCommentsPaginator is a paginator for DescribeComments
func NewDescribeCommentsPaginator ¶
func NewDescribeCommentsPaginator(client DescribeCommentsAPIClient, params *DescribeCommentsInput, optFns ...func(*DescribeCommentsPaginatorOptions)) *DescribeCommentsPaginator
NewDescribeCommentsPaginator returns a new DescribeCommentsPaginator
func (*DescribeCommentsPaginator) HasMorePages ¶
func (p *DescribeCommentsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeCommentsPaginator) NextPage ¶
func (p *DescribeCommentsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCommentsOutput, error)
NextPage retrieves the next DescribeComments page.
type DescribeCommentsPaginatorOptions ¶
type DescribeCommentsPaginatorOptions struct { // The maximum number of items to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeCommentsPaginatorOptions is the paginator options for DescribeComments
type DescribeDocumentVersionsAPIClient ¶
type DescribeDocumentVersionsAPIClient interface {
DescribeDocumentVersions(context.Context, *DescribeDocumentVersionsInput, ...func(*Options)) (*DescribeDocumentVersionsOutput, error)
}
DescribeDocumentVersionsAPIClient is a client that implements the DescribeDocumentVersions operation.
type DescribeDocumentVersionsInput ¶
type DescribeDocumentVersionsInput struct { // The ID of the document. // // This member is required. DocumentId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // Specify "SOURCE" to include initialized versions and a URL for the source // document. Fields *string // A comma-separated list of values. Specify "INITIALIZED" to include incomplete // versions. Include *string // The maximum number of versions to return with this call. Limit *int32 // The marker for the next set of results. (You received this marker from a // previous call.) Marker *string // contains filtered or unexported fields }
type DescribeDocumentVersionsOutput ¶
type DescribeDocumentVersionsOutput struct { // The document versions. DocumentVersions []types.DocumentVersionMetadata // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. Marker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeDocumentVersionsPaginator ¶
type DescribeDocumentVersionsPaginator struct {
// contains filtered or unexported fields
}
DescribeDocumentVersionsPaginator is a paginator for DescribeDocumentVersions
func NewDescribeDocumentVersionsPaginator ¶
func NewDescribeDocumentVersionsPaginator(client DescribeDocumentVersionsAPIClient, params *DescribeDocumentVersionsInput, optFns ...func(*DescribeDocumentVersionsPaginatorOptions)) *DescribeDocumentVersionsPaginator
NewDescribeDocumentVersionsPaginator returns a new DescribeDocumentVersionsPaginator
func (*DescribeDocumentVersionsPaginator) HasMorePages ¶
func (p *DescribeDocumentVersionsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeDocumentVersionsPaginator) NextPage ¶
func (p *DescribeDocumentVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeDocumentVersionsOutput, error)
NextPage retrieves the next DescribeDocumentVersions page.
type DescribeDocumentVersionsPaginatorOptions ¶
type DescribeDocumentVersionsPaginatorOptions struct { // The maximum number of versions to return with this call. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeDocumentVersionsPaginatorOptions is the paginator options for DescribeDocumentVersions
type DescribeFolderContentsAPIClient ¶
type DescribeFolderContentsAPIClient interface {
DescribeFolderContents(context.Context, *DescribeFolderContentsInput, ...func(*Options)) (*DescribeFolderContentsOutput, error)
}
DescribeFolderContentsAPIClient is a client that implements the DescribeFolderContents operation.
type DescribeFolderContentsInput ¶
type DescribeFolderContentsInput struct { // The ID of the folder. // // This member is required. FolderId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The contents to include. Specify "INITIALIZED" to include initialized documents. Include *string // The maximum number of items to return with this call. Limit *int32 // The marker for the next set of results. This marker was received from a // previous call. Marker *string // The order for the contents of the folder. Order types.OrderType // The sorting criteria. Sort types.ResourceSortType // The type of items. Type types.FolderContentType // contains filtered or unexported fields }
type DescribeFolderContentsOutput ¶
type DescribeFolderContentsOutput struct { // The documents in the specified folder. Documents []types.DocumentMetadata // The subfolders in the specified folder. Folders []types.FolderMetadata // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. Marker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeFolderContentsPaginator ¶
type DescribeFolderContentsPaginator struct {
// contains filtered or unexported fields
}
DescribeFolderContentsPaginator is a paginator for DescribeFolderContents
func NewDescribeFolderContentsPaginator ¶
func NewDescribeFolderContentsPaginator(client DescribeFolderContentsAPIClient, params *DescribeFolderContentsInput, optFns ...func(*DescribeFolderContentsPaginatorOptions)) *DescribeFolderContentsPaginator
NewDescribeFolderContentsPaginator returns a new DescribeFolderContentsPaginator
func (*DescribeFolderContentsPaginator) HasMorePages ¶
func (p *DescribeFolderContentsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeFolderContentsPaginator) NextPage ¶
func (p *DescribeFolderContentsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeFolderContentsOutput, error)
NextPage retrieves the next DescribeFolderContents page.
type DescribeFolderContentsPaginatorOptions ¶
type DescribeFolderContentsPaginatorOptions struct { // The maximum number of items to return with this call. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeFolderContentsPaginatorOptions is the paginator options for DescribeFolderContents
type DescribeGroupsAPIClient ¶
type DescribeGroupsAPIClient interface {
DescribeGroups(context.Context, *DescribeGroupsInput, ...func(*Options)) (*DescribeGroupsOutput, error)
}
DescribeGroupsAPIClient is a client that implements the DescribeGroups operation.
type DescribeGroupsInput ¶
type DescribeGroupsInput struct { // A query to describe groups by group name. // // This member is required. SearchQuery *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The maximum number of items to return with this call. Limit *int32 // The marker for the next set of results. (You received this marker from a // previous call.) Marker *string // The ID of the organization. OrganizationId *string // contains filtered or unexported fields }
type DescribeGroupsOutput ¶
type DescribeGroupsOutput struct { // The list of groups. Groups []types.GroupMetadata // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. Marker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeGroupsPaginator ¶
type DescribeGroupsPaginator struct {
// contains filtered or unexported fields
}
DescribeGroupsPaginator is a paginator for DescribeGroups
func NewDescribeGroupsPaginator ¶
func NewDescribeGroupsPaginator(client DescribeGroupsAPIClient, params *DescribeGroupsInput, optFns ...func(*DescribeGroupsPaginatorOptions)) *DescribeGroupsPaginator
NewDescribeGroupsPaginator returns a new DescribeGroupsPaginator
func (*DescribeGroupsPaginator) HasMorePages ¶
func (p *DescribeGroupsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeGroupsPaginator) NextPage ¶
func (p *DescribeGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeGroupsOutput, error)
NextPage retrieves the next DescribeGroups page.
type DescribeGroupsPaginatorOptions ¶
type DescribeGroupsPaginatorOptions struct { // The maximum number of items to return with this call. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeGroupsPaginatorOptions is the paginator options for DescribeGroups
type DescribeNotificationSubscriptionsAPIClient ¶
type DescribeNotificationSubscriptionsAPIClient interface {
DescribeNotificationSubscriptions(context.Context, *DescribeNotificationSubscriptionsInput, ...func(*Options)) (*DescribeNotificationSubscriptionsOutput, error)
}
DescribeNotificationSubscriptionsAPIClient is a client that implements the DescribeNotificationSubscriptions operation.
type DescribeNotificationSubscriptionsInput ¶
type DescribeNotificationSubscriptionsInput struct { // The ID of the organization. // // This member is required. OrganizationId *string // The maximum number of items to return with this call. Limit *int32 // The marker for the next set of results. (You received this marker from a // previous call.) Marker *string // contains filtered or unexported fields }
type DescribeNotificationSubscriptionsOutput ¶
type DescribeNotificationSubscriptionsOutput struct { // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. Marker *string // The subscriptions. Subscriptions []types.Subscription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeNotificationSubscriptionsPaginator ¶
type DescribeNotificationSubscriptionsPaginator struct {
// contains filtered or unexported fields
}
DescribeNotificationSubscriptionsPaginator is a paginator for DescribeNotificationSubscriptions
func NewDescribeNotificationSubscriptionsPaginator ¶
func NewDescribeNotificationSubscriptionsPaginator(client DescribeNotificationSubscriptionsAPIClient, params *DescribeNotificationSubscriptionsInput, optFns ...func(*DescribeNotificationSubscriptionsPaginatorOptions)) *DescribeNotificationSubscriptionsPaginator
NewDescribeNotificationSubscriptionsPaginator returns a new DescribeNotificationSubscriptionsPaginator
func (*DescribeNotificationSubscriptionsPaginator) HasMorePages ¶
func (p *DescribeNotificationSubscriptionsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeNotificationSubscriptionsPaginator) NextPage ¶
func (p *DescribeNotificationSubscriptionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeNotificationSubscriptionsOutput, error)
NextPage retrieves the next DescribeNotificationSubscriptions page.
type DescribeNotificationSubscriptionsPaginatorOptions ¶
type DescribeNotificationSubscriptionsPaginatorOptions struct { // The maximum number of items to return with this call. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeNotificationSubscriptionsPaginatorOptions is the paginator options for DescribeNotificationSubscriptions
type DescribeResourcePermissionsAPIClient ¶
type DescribeResourcePermissionsAPIClient interface {
DescribeResourcePermissions(context.Context, *DescribeResourcePermissionsInput, ...func(*Options)) (*DescribeResourcePermissionsOutput, error)
}
DescribeResourcePermissionsAPIClient is a client that implements the DescribeResourcePermissions operation.
type DescribeResourcePermissionsInput ¶
type DescribeResourcePermissionsInput struct { // The ID of the resource. // // This member is required. ResourceId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The maximum number of items to return with this call. Limit *int32 // The marker for the next set of results. (You received this marker from a // previous call) Marker *string // The ID of the principal to filter permissions by. PrincipalId *string // contains filtered or unexported fields }
type DescribeResourcePermissionsOutput ¶
type DescribeResourcePermissionsOutput struct { // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. Marker *string // The principals. Principals []types.Principal // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeResourcePermissionsPaginator ¶
type DescribeResourcePermissionsPaginator struct {
// contains filtered or unexported fields
}
DescribeResourcePermissionsPaginator is a paginator for DescribeResourcePermissions
func NewDescribeResourcePermissionsPaginator ¶
func NewDescribeResourcePermissionsPaginator(client DescribeResourcePermissionsAPIClient, params *DescribeResourcePermissionsInput, optFns ...func(*DescribeResourcePermissionsPaginatorOptions)) *DescribeResourcePermissionsPaginator
NewDescribeResourcePermissionsPaginator returns a new DescribeResourcePermissionsPaginator
func (*DescribeResourcePermissionsPaginator) HasMorePages ¶
func (p *DescribeResourcePermissionsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeResourcePermissionsPaginator) NextPage ¶
func (p *DescribeResourcePermissionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeResourcePermissionsOutput, error)
NextPage retrieves the next DescribeResourcePermissions page.
type DescribeResourcePermissionsPaginatorOptions ¶
type DescribeResourcePermissionsPaginatorOptions struct { // The maximum number of items to return with this call. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeResourcePermissionsPaginatorOptions is the paginator options for DescribeResourcePermissions
type DescribeRootFoldersAPIClient ¶
type DescribeRootFoldersAPIClient interface {
DescribeRootFolders(context.Context, *DescribeRootFoldersInput, ...func(*Options)) (*DescribeRootFoldersOutput, error)
}
DescribeRootFoldersAPIClient is a client that implements the DescribeRootFolders operation.
type DescribeRootFoldersInput ¶
type DescribeRootFoldersInput struct { // Amazon WorkDocs authentication token. // // This member is required. AuthenticationToken *string // The maximum number of items to return. Limit *int32 // The marker for the next set of results. (You received this marker from a // previous call.) Marker *string // contains filtered or unexported fields }
type DescribeRootFoldersOutput ¶
type DescribeRootFoldersOutput struct { // The user's special folders. Folders []types.FolderMetadata // The marker for the next set of results. Marker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeRootFoldersPaginator ¶
type DescribeRootFoldersPaginator struct {
// contains filtered or unexported fields
}
DescribeRootFoldersPaginator is a paginator for DescribeRootFolders
func NewDescribeRootFoldersPaginator ¶
func NewDescribeRootFoldersPaginator(client DescribeRootFoldersAPIClient, params *DescribeRootFoldersInput, optFns ...func(*DescribeRootFoldersPaginatorOptions)) *DescribeRootFoldersPaginator
NewDescribeRootFoldersPaginator returns a new DescribeRootFoldersPaginator
func (*DescribeRootFoldersPaginator) HasMorePages ¶
func (p *DescribeRootFoldersPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeRootFoldersPaginator) NextPage ¶
func (p *DescribeRootFoldersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeRootFoldersOutput, error)
NextPage retrieves the next DescribeRootFolders page.
type DescribeRootFoldersPaginatorOptions ¶
type DescribeRootFoldersPaginatorOptions struct { // The maximum number of items to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeRootFoldersPaginatorOptions is the paginator options for DescribeRootFolders
type DescribeUsersAPIClient ¶
type DescribeUsersAPIClient interface {
DescribeUsers(context.Context, *DescribeUsersInput, ...func(*Options)) (*DescribeUsersOutput, error)
}
DescribeUsersAPIClient is a client that implements the DescribeUsers operation.
type DescribeUsersInput ¶
type DescribeUsersInput struct { // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // A comma-separated list of values. Specify "STORAGE_METADATA" to include the // user storage quota and utilization information. Fields *string // The state of the users. Specify "ALL" to include inactive users. Include types.UserFilterType // The maximum number of items to return. Limit *int32 // The marker for the next set of results. (You received this marker from a // previous call.) Marker *string // The order for the results. Order types.OrderType // The ID of the organization. OrganizationId *string // A query to filter users by user name. Remember the following about the Userids // and Query parameters: // // - If you don't use either parameter, the API returns a paginated list of all // users on the site. // // - If you use both parameters, the API ignores the Query parameter. // // - The Userid parameter only returns user names that match a corresponding user // ID. // // - The Query parameter runs a "prefix" search for users by the GivenName , // SurName , or UserName fields included in a [CreateUser]API call. For example, querying on // Ma returns Márcia Oliveira, María García, and Mateo Jackson. If you use // multiple characters, the API only returns data that matches all characters. For // example, querying on Ma J only returns Mateo Jackson. // // [CreateUser]: https://docs.aws.amazon.com/workdocs/latest/APIReference/API_CreateUser.html Query *string // The sorting criteria. Sort types.UserSortType // The IDs of the users. UserIds *string // contains filtered or unexported fields }
type DescribeUsersOutput ¶
type DescribeUsersOutput struct { // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. Marker *string // The total number of users included in the results. // // Deprecated: This member has been deprecated. TotalNumberOfUsers *int64 // The users. Users []types.User // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeUsersPaginator ¶
type DescribeUsersPaginator struct {
// contains filtered or unexported fields
}
DescribeUsersPaginator is a paginator for DescribeUsers
func NewDescribeUsersPaginator ¶
func NewDescribeUsersPaginator(client DescribeUsersAPIClient, params *DescribeUsersInput, optFns ...func(*DescribeUsersPaginatorOptions)) *DescribeUsersPaginator
NewDescribeUsersPaginator returns a new DescribeUsersPaginator
func (*DescribeUsersPaginator) HasMorePages ¶
func (p *DescribeUsersPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeUsersPaginator) NextPage ¶
func (p *DescribeUsersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeUsersOutput, error)
NextPage retrieves the next DescribeUsers page.
type DescribeUsersPaginatorOptions ¶
type DescribeUsersPaginatorOptions struct { // The maximum number of items to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeUsersPaginatorOptions is the paginator options for DescribeUsers
type EndpointParameters ¶
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetCurrentUserInput ¶
type GetCurrentUserInput struct { // Amazon WorkDocs authentication token. // // This member is required. AuthenticationToken *string // contains filtered or unexported fields }
type GetCurrentUserOutput ¶
type GetCurrentUserOutput struct { // Metadata of the user. User *types.User // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetDocumentInput ¶
type GetDocumentInput struct { // The ID of the document. // // This member is required. DocumentId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // Set this to TRUE to include custom metadata in the response. IncludeCustomMetadata bool // contains filtered or unexported fields }
type GetDocumentOutput ¶
type GetDocumentOutput struct { // The custom metadata on the document. CustomMetadata map[string]string // The metadata details of the document. Metadata *types.DocumentMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetDocumentPathInput ¶
type GetDocumentPathInput struct { // The ID of the document. // // This member is required. DocumentId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // A comma-separated list of values. Specify NAME to include the names of the // parent folders. Fields *string // The maximum number of levels in the hierarchy to return. Limit *int32 // This value is not supported. Marker *string // contains filtered or unexported fields }
type GetDocumentPathOutput ¶
type GetDocumentPathOutput struct { // The path information. Path *types.ResourcePath // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetDocumentVersionInput ¶
type GetDocumentVersionInput struct { // The ID of the document. // // This member is required. DocumentId *string // The version ID of the document. // // This member is required. VersionId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // A comma-separated list of values. Specify "SOURCE" to include a URL for the // source document. Fields *string // Set this to TRUE to include custom metadata in the response. IncludeCustomMetadata bool // contains filtered or unexported fields }
type GetDocumentVersionOutput ¶
type GetDocumentVersionOutput struct { // The custom metadata on the document version. CustomMetadata map[string]string // The version metadata. Metadata *types.DocumentVersionMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetFolderInput ¶
type GetFolderInput struct { // The ID of the folder. // // This member is required. FolderId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // Set to TRUE to include custom metadata in the response. IncludeCustomMetadata bool // contains filtered or unexported fields }
type GetFolderOutput ¶
type GetFolderOutput struct { // The custom metadata on the folder. CustomMetadata map[string]string // The metadata of the folder. Metadata *types.FolderMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetFolderPathInput ¶
type GetFolderPathInput struct { // The ID of the folder. // // This member is required. FolderId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // A comma-separated list of values. Specify "NAME" to include the names of the // parent folders. Fields *string // The maximum number of levels in the hierarchy to return. Limit *int32 // This value is not supported. Marker *string // contains filtered or unexported fields }
type GetFolderPathOutput ¶
type GetFolderPathOutput struct { // The path information. Path *types.ResourcePath // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetResourcesInput ¶
type GetResourcesInput struct { // The Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The collection type. CollectionType types.ResourceCollectionType // The maximum number of resources to return. Limit *int32 // The marker for the next set of results. This marker was received from a // previous call. Marker *string // The user ID for the resource collection. This is a required field for accessing // the API operation using IAM credentials. UserId *string // contains filtered or unexported fields }
type GetResourcesOutput ¶
type GetResourcesOutput struct { // The documents in the specified collection. Documents []types.DocumentMetadata // The folders in the specified folder. Folders []types.FolderMetadata // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. Marker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type InitiateDocumentVersionUploadInput ¶
type InitiateDocumentVersionUploadInput struct { // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The timestamp when the content of the document was originally created. ContentCreatedTimestamp *time.Time // The timestamp when the content of the document was modified. ContentModifiedTimestamp *time.Time // The content type of the document. ContentType *string // The size of the document, in bytes. DocumentSizeInBytes *int64 // The ID of the document. Id *string // The name of the document. Name *string // The ID of the parent folder. ParentFolderId *string // contains filtered or unexported fields }
type InitiateDocumentVersionUploadOutput ¶
type InitiateDocumentVersionUploadOutput struct { // The document metadata. Metadata *types.DocumentMetadata // The upload metadata. UploadMetadata *types.UploadMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. // // To migrate an EndpointResolver implementation that uses a custom endpoint, set // the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. // // If specified in an operation call's functional options with a value that is // different than the constructed client's Options, the Client's Retryer will be // wrapped to use the operation's specific RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. // // When creating a new API Clients this member will only be used if the Retryer // Options member is nil. This value will be ignored if Retryer is not nil. // // Currently does not support per operation call overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) Copy ¶
Copy creates a clone where the APIOptions list is deep copied.
func (Options) GetIdentityResolver ¶
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
type RemoveAllResourcePermissionsInput ¶
type RemoveAllResourcePermissionsInput struct { // The ID of the resource. // // This member is required. ResourceId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // contains filtered or unexported fields }
type RemoveAllResourcePermissionsOutput ¶
type RemoveAllResourcePermissionsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type RemoveResourcePermissionInput ¶
type RemoveResourcePermissionInput struct { // The principal ID of the resource. // // This member is required. PrincipalId *string // The ID of the resource. // // This member is required. ResourceId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The principal type of the resource. PrincipalType types.PrincipalType // contains filtered or unexported fields }
type RemoveResourcePermissionOutput ¶
type RemoveResourcePermissionOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type RestoreDocumentVersionsInput ¶
type RestoreDocumentVersionsInput struct { // The ID of the document. // // This member is required. DocumentId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // contains filtered or unexported fields }
type RestoreDocumentVersionsOutput ¶
type RestoreDocumentVersionsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type SearchResourcesAPIClient ¶
type SearchResourcesAPIClient interface {
SearchResources(context.Context, *SearchResourcesInput, ...func(*Options)) (*SearchResourcesOutput, error)
}
SearchResourcesAPIClient is a client that implements the SearchResources operation.
type SearchResourcesInput ¶
type SearchResourcesInput struct { // A list of attributes to include in the response. Used to request fields that // are not normally returned in a standard response. AdditionalResponseFields []types.AdditionalResponseFieldType // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // Filters results based on entity metadata. Filters *types.Filters // Max results count per page. Limit *int32 // The marker for the next set of results. Marker *string // Order by results in one or more categories. OrderBy []types.SearchSortResult // Filters based on the resource owner OrgId. This is a mandatory parameter when // using Admin SigV4 credentials. OrganizationId *string // Filter based on the text field type. A Folder has only a name and no content. A // Comment has only content and no name. A Document or Document Version has a name // and content QueryScopes []types.SearchQueryScopeType // The String to search for. Searches across different text fields based on // request parameters. Use double quotes around the query string for exact phrase // matches. QueryText *string // contains filtered or unexported fields }
type SearchResourcesOutput ¶
type SearchResourcesOutput struct { // List of Documents, Folders, Comments, and Document Versions matching the query. Items []types.ResponseItem // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. Marker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type SearchResourcesPaginator ¶
type SearchResourcesPaginator struct {
// contains filtered or unexported fields
}
SearchResourcesPaginator is a paginator for SearchResources
func NewSearchResourcesPaginator ¶
func NewSearchResourcesPaginator(client SearchResourcesAPIClient, params *SearchResourcesInput, optFns ...func(*SearchResourcesPaginatorOptions)) *SearchResourcesPaginator
NewSearchResourcesPaginator returns a new SearchResourcesPaginator
func (*SearchResourcesPaginator) HasMorePages ¶
func (p *SearchResourcesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*SearchResourcesPaginator) NextPage ¶
func (p *SearchResourcesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchResourcesOutput, error)
NextPage retrieves the next SearchResources page.
type SearchResourcesPaginatorOptions ¶
type SearchResourcesPaginatorOptions struct { // Max results count per page. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
SearchResourcesPaginatorOptions is the paginator options for SearchResources
type UpdateDocumentInput ¶
type UpdateDocumentInput struct { // The ID of the document. // // This member is required. DocumentId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The name of the document. Name *string // The ID of the parent folder. ParentFolderId *string // The resource state of the document. Only ACTIVE and RECYCLED are supported. ResourceState types.ResourceStateType // contains filtered or unexported fields }
type UpdateDocumentOutput ¶
type UpdateDocumentOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateDocumentVersionInput ¶
type UpdateDocumentVersionInput struct { // The ID of the document. // // This member is required. DocumentId *string // The version ID of the document. // // This member is required. VersionId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The status of the version. VersionStatus types.DocumentVersionStatus // contains filtered or unexported fields }
type UpdateDocumentVersionOutput ¶
type UpdateDocumentVersionOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateFolderInput ¶
type UpdateFolderInput struct { // The ID of the folder. // // This member is required. FolderId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The name of the folder. Name *string // The ID of the parent folder. ParentFolderId *string // The resource state of the folder. Only ACTIVE and RECYCLED are accepted values // from the API. ResourceState types.ResourceStateType // contains filtered or unexported fields }
type UpdateFolderOutput ¶
type UpdateFolderOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateUserInput ¶
type UpdateUserInput struct { // The ID of the user. // // This member is required. UserId *string // Amazon WorkDocs authentication token. Not required when using Amazon Web // Services administrator credentials to access the API. AuthenticationToken *string // The given name of the user. GivenName *string // Boolean value to determine whether the user is granted Power user privileges. GrantPoweruserPrivileges types.BooleanEnumType // The locale of the user. Locale types.LocaleType // The amount of storage for the user. StorageRule *types.StorageRuleType // The surname of the user. Surname *string // The time zone ID of the user. TimeZoneId *string // The type of the user. Type types.UserType // contains filtered or unexported fields }
type UpdateUserOutput ¶
type UpdateUserOutput struct { // The user information. User *types.User // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files
¶
- api_client.go
- api_op_AbortDocumentVersionUpload.go
- api_op_ActivateUser.go
- api_op_AddResourcePermissions.go
- api_op_CreateComment.go
- api_op_CreateCustomMetadata.go
- api_op_CreateFolder.go
- api_op_CreateLabels.go
- api_op_CreateNotificationSubscription.go
- api_op_CreateUser.go
- api_op_DeactivateUser.go
- api_op_DeleteComment.go
- api_op_DeleteCustomMetadata.go
- api_op_DeleteDocument.go
- api_op_DeleteDocumentVersion.go
- api_op_DeleteFolder.go
- api_op_DeleteFolderContents.go
- api_op_DeleteLabels.go
- api_op_DeleteNotificationSubscription.go
- api_op_DeleteUser.go
- api_op_DescribeActivities.go
- api_op_DescribeComments.go
- api_op_DescribeDocumentVersions.go
- api_op_DescribeFolderContents.go
- api_op_DescribeGroups.go
- api_op_DescribeNotificationSubscriptions.go
- api_op_DescribeResourcePermissions.go
- api_op_DescribeRootFolders.go
- api_op_DescribeUsers.go
- api_op_GetCurrentUser.go
- api_op_GetDocument.go
- api_op_GetDocumentPath.go
- api_op_GetDocumentVersion.go
- api_op_GetFolder.go
- api_op_GetFolderPath.go
- api_op_GetResources.go
- api_op_InitiateDocumentVersionUpload.go
- api_op_RemoveAllResourcePermissions.go
- api_op_RemoveResourcePermission.go
- api_op_RestoreDocumentVersions.go
- api_op_SearchResources.go
- api_op_UpdateDocument.go
- api_op_UpdateDocumentVersion.go
- api_op_UpdateFolder.go
- api_op_UpdateUser.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go