AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

WorkDocs

import "github.com/aws/aws-sdk-go/service/workdocs"

type WorkDocs struct { *client.Client }

WorkDocs provides the API operation methods for making requests to Amazon WorkDocs. See this package's package overview docs for details on the service.

WorkDocs methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

Client

Type: *client.Client

Method

AbortDocumentVersionUpload

func (c *WorkDocs) AbortDocumentVersionUpload(input *AbortDocumentVersionUploadInput) (*AbortDocumentVersionUploadOutput, error)

AbortDocumentVersionUpload API operation for Amazon WorkDocs.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation AbortDocumentVersionUpload for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AbortDocumentVersionUpload

AbortDocumentVersionUploadRequest

func (c *WorkDocs) AbortDocumentVersionUploadRequest(input *AbortDocumentVersionUploadInput) (req *request.Request, output *AbortDocumentVersionUploadOutput)

AbortDocumentVersionUploadRequest generates a "aws/request.Request" representing the client's request for the AbortDocumentVersionUpload operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AbortDocumentVersionUpload for more information on using the AbortDocumentVersionUpload API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AbortDocumentVersionUploadRequest method. req, resp := client.AbortDocumentVersionUploadRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AbortDocumentVersionUpload

AbortDocumentVersionUploadWithContext

func (c *WorkDocs) AbortDocumentVersionUploadWithContext(ctx aws.Context, input *AbortDocumentVersionUploadInput, opts ...request.Option) (*AbortDocumentVersionUploadOutput, error)

AbortDocumentVersionUploadWithContext is the same as AbortDocumentVersionUpload with the addition of the ability to pass a context and additional request options.

See AbortDocumentVersionUpload for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ActivateUser

func (c *WorkDocs) ActivateUser(input *ActivateUserInput) (*ActivateUserOutput, error)

ActivateUser API operation for Amazon WorkDocs.

Activates the specified user. Only active users can access Amazon WorkDocs.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation ActivateUser for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ActivateUser

ActivateUserRequest

func (c *WorkDocs) ActivateUserRequest(input *ActivateUserInput) (req *request.Request, output *ActivateUserOutput)

ActivateUserRequest generates a "aws/request.Request" representing the client's request for the ActivateUser operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ActivateUser for more information on using the ActivateUser API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ActivateUserRequest method. req, resp := client.ActivateUserRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ActivateUser

ActivateUserWithContext

func (c *WorkDocs) ActivateUserWithContext(ctx aws.Context, input *ActivateUserInput, opts ...request.Option) (*ActivateUserOutput, error)

ActivateUserWithContext is the same as ActivateUser with the addition of the ability to pass a context and additional request options.

See ActivateUser for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

AddResourcePermissions

func (c *WorkDocs) AddResourcePermissions(input *AddResourcePermissionsInput) (*AddResourcePermissionsOutput, error)

AddResourcePermissions API operation for Amazon WorkDocs.

Creates a set of permissions for the specified folder or document. The resource permissions are overwritten if the principals already have different permissions.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation AddResourcePermissions for usage and error information.

Returned Error Codes:

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AddResourcePermissions

AddResourcePermissionsRequest

func (c *WorkDocs) AddResourcePermissionsRequest(input *AddResourcePermissionsInput) (req *request.Request, output *AddResourcePermissionsOutput)

AddResourcePermissionsRequest generates a "aws/request.Request" representing the client's request for the AddResourcePermissions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddResourcePermissions for more information on using the AddResourcePermissions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AddResourcePermissionsRequest method. req, resp := client.AddResourcePermissionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AddResourcePermissions

AddResourcePermissionsWithContext

func (c *WorkDocs) AddResourcePermissionsWithContext(ctx aws.Context, input *AddResourcePermissionsInput, opts ...request.Option) (*AddResourcePermissionsOutput, error)

AddResourcePermissionsWithContext is the same as AddResourcePermissions with the addition of the ability to pass a context and additional request options.

See AddResourcePermissions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateComment

func (c *WorkDocs) CreateComment(input *CreateCommentInput) (*CreateCommentOutput, error)

CreateComment API operation for Amazon WorkDocs.

Adds a new comment to the specified document version.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation CreateComment for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

  • ErrCodeDocumentLockedForCommentsException "DocumentLockedForCommentsException" This exception is thrown when the document is locked for comments and user tries to create or delete a comment on that document.

  • ErrCodeInvalidCommentOperationException "InvalidCommentOperationException" The requested operation is not allowed on the specified comment object.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateComment

CreateCommentRequest

func (c *WorkDocs) CreateCommentRequest(input *CreateCommentInput) (req *request.Request, output *CreateCommentOutput)

CreateCommentRequest generates a "aws/request.Request" representing the client's request for the CreateComment operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateComment for more information on using the CreateComment API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateCommentRequest method. req, resp := client.CreateCommentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateComment

CreateCommentWithContext

func (c *WorkDocs) CreateCommentWithContext(ctx aws.Context, input *CreateCommentInput, opts ...request.Option) (*CreateCommentOutput, error)

CreateCommentWithContext is the same as CreateComment with the addition of the ability to pass a context and additional request options.

See CreateComment for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateCustomMetadata

func (c *WorkDocs) CreateCustomMetadata(input *CreateCustomMetadataInput) (*CreateCustomMetadataOutput, error)

CreateCustomMetadata API operation for Amazon WorkDocs.

Adds one or more custom properties to the specified resource (a folder, document, or version).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation CreateCustomMetadata for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeCustomMetadataLimitExceededException "CustomMetadataLimitExceededException" The limit has been reached on the number of custom properties for the specified resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateCustomMetadata

CreateCustomMetadataRequest

func (c *WorkDocs) CreateCustomMetadataRequest(input *CreateCustomMetadataInput) (req *request.Request, output *CreateCustomMetadataOutput)

CreateCustomMetadataRequest generates a "aws/request.Request" representing the client's request for the CreateCustomMetadata operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateCustomMetadata for more information on using the CreateCustomMetadata API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateCustomMetadataRequest method. req, resp := client.CreateCustomMetadataRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateCustomMetadata

CreateCustomMetadataWithContext

func (c *WorkDocs) CreateCustomMetadataWithContext(ctx aws.Context, input *CreateCustomMetadataInput, opts ...request.Option) (*CreateCustomMetadataOutput, error)

CreateCustomMetadataWithContext is the same as CreateCustomMetadata with the addition of the ability to pass a context and additional request options.

See CreateCustomMetadata for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateFolder

func (c *WorkDocs) CreateFolder(input *CreateFolderInput) (*CreateFolderOutput, error)

CreateFolder API operation for Amazon WorkDocs.

Creates a folder with the specified name and parent folder.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation CreateFolder for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" The resource already exists.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeConflictingOperationException "ConflictingOperationException" Another operation is in progress on the resource that conflicts with the current operation.

  • ErrCodeLimitExceededException "LimitExceededException" The maximum of 100,000 folders under the parent folder has been exceeded.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateFolder

CreateFolderRequest

func (c *WorkDocs) CreateFolderRequest(input *CreateFolderInput) (req *request.Request, output *CreateFolderOutput)

CreateFolderRequest generates a "aws/request.Request" representing the client's request for the CreateFolder operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateFolder for more information on using the CreateFolder API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateFolderRequest method. req, resp := client.CreateFolderRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateFolder

CreateFolderWithContext

func (c *WorkDocs) CreateFolderWithContext(ctx aws.Context, input *CreateFolderInput, opts ...request.Option) (*CreateFolderOutput, error)

CreateFolderWithContext is the same as CreateFolder with the addition of the ability to pass a context and additional request options.

See CreateFolder for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateLabels

func (c *WorkDocs) CreateLabels(input *CreateLabelsInput) (*CreateLabelsOutput, error)

CreateLabels API operation for Amazon WorkDocs.

Adds the specified list of labels to the given resource (a document or folder)

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation CreateLabels for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

  • ErrCodeTooManyLabelsException "TooManyLabelsException" The limit has been reached on the number of labels for the specified resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateLabels

CreateLabelsRequest

func (c *WorkDocs) CreateLabelsRequest(input *CreateLabelsInput) (req *request.Request, output *CreateLabelsOutput)

CreateLabelsRequest generates a "aws/request.Request" representing the client's request for the CreateLabels operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateLabels for more information on using the CreateLabels API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateLabelsRequest method. req, resp := client.CreateLabelsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateLabels

CreateLabelsWithContext

func (c *WorkDocs) CreateLabelsWithContext(ctx aws.Context, input *CreateLabelsInput, opts ...request.Option) (*CreateLabelsOutput, error)

CreateLabelsWithContext is the same as CreateLabels with the addition of the ability to pass a context and additional request options.

See CreateLabels for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateNotificationSubscription

func (c *WorkDocs) CreateNotificationSubscription(input *CreateNotificationSubscriptionInput) (*CreateNotificationSubscriptionOutput, error)

CreateNotificationSubscription API operation for Amazon WorkDocs.

Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a confirmation message, and must confirm the subscription.

For more information, see Subscribe to Notifications (https://docs.aws.amazon.com/workdocs/latest/developerguide/subscribe-notifications.html) in the Amazon WorkDocs Developer Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation CreateNotificationSubscription for usage and error information.

Returned Error Codes:

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeTooManySubscriptionsException "TooManySubscriptionsException" You've reached the limit on the number of subscriptions for the WorkDocs instance.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateNotificationSubscription

CreateNotificationSubscriptionRequest

func (c *WorkDocs) CreateNotificationSubscriptionRequest(input *CreateNotificationSubscriptionInput) (req *request.Request, output *CreateNotificationSubscriptionOutput)

CreateNotificationSubscriptionRequest generates a "aws/request.Request" representing the client's request for the CreateNotificationSubscription operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateNotificationSubscription for more information on using the CreateNotificationSubscription API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateNotificationSubscriptionRequest method. req, resp := client.CreateNotificationSubscriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateNotificationSubscription

CreateNotificationSubscriptionWithContext

func (c *WorkDocs) CreateNotificationSubscriptionWithContext(ctx aws.Context, input *CreateNotificationSubscriptionInput, opts ...request.Option) (*CreateNotificationSubscriptionOutput, error)

CreateNotificationSubscriptionWithContext is the same as CreateNotificationSubscription with the addition of the ability to pass a context and additional request options.

See CreateNotificationSubscription for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateUser

func (c *WorkDocs) CreateUser(input *CreateUserInput) (*CreateUserOutput, error)

CreateUser API operation for Amazon WorkDocs.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation CreateUser for usage and error information.

Returned Error Codes:

  • ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" The resource already exists.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateUser

CreateUserRequest

func (c *WorkDocs) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput)

CreateUserRequest generates a "aws/request.Request" representing the client's request for the CreateUser operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateUser for more information on using the CreateUser API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateUserRequest method. req, resp := client.CreateUserRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateUser

CreateUserWithContext

func (c *WorkDocs) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error)

CreateUserWithContext is the same as CreateUser with the addition of the ability to pass a context and additional request options.

See CreateUser for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeactivateUser

func (c *WorkDocs) DeactivateUser(input *DeactivateUserInput) (*DeactivateUserOutput, error)

DeactivateUser API operation for Amazon WorkDocs.

Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DeactivateUser for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeactivateUser

DeactivateUserRequest

func (c *WorkDocs) DeactivateUserRequest(input *DeactivateUserInput) (req *request.Request, output *DeactivateUserOutput)

DeactivateUserRequest generates a "aws/request.Request" representing the client's request for the DeactivateUser operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeactivateUser for more information on using the DeactivateUser API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeactivateUserRequest method. req, resp := client.DeactivateUserRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeactivateUser

DeactivateUserWithContext

func (c *WorkDocs) DeactivateUserWithContext(ctx aws.Context, input *DeactivateUserInput, opts ...request.Option) (*DeactivateUserOutput, error)

DeactivateUserWithContext is the same as DeactivateUser with the addition of the ability to pass a context and additional request options.

See DeactivateUser for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteComment

func (c *WorkDocs) DeleteComment(input *DeleteCommentInput) (*DeleteCommentOutput, error)

DeleteComment API operation for Amazon WorkDocs.

Deletes the specified comment from the document version.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DeleteComment for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

  • ErrCodeDocumentLockedForCommentsException "DocumentLockedForCommentsException" This exception is thrown when the document is locked for comments and user tries to create or delete a comment on that document.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteComment

DeleteCommentRequest

func (c *WorkDocs) DeleteCommentRequest(input *DeleteCommentInput) (req *request.Request, output *DeleteCommentOutput)

DeleteCommentRequest generates a "aws/request.Request" representing the client's request for the DeleteComment operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteComment for more information on using the DeleteComment API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteCommentRequest method. req, resp := client.DeleteCommentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteComment

DeleteCommentWithContext

func (c *WorkDocs) DeleteCommentWithContext(ctx aws.Context, input *DeleteCommentInput, opts ...request.Option) (*DeleteCommentOutput, error)

DeleteCommentWithContext is the same as DeleteComment with the addition of the ability to pass a context and additional request options.

See DeleteComment for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteCustomMetadata

func (c *WorkDocs) DeleteCustomMetadata(input *DeleteCustomMetadataInput) (*DeleteCustomMetadataOutput, error)

DeleteCustomMetadata API operation for Amazon WorkDocs.

Deletes custom metadata from the specified resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DeleteCustomMetadata for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteCustomMetadata

DeleteCustomMetadataRequest

func (c *WorkDocs) DeleteCustomMetadataRequest(input *DeleteCustomMetadataInput) (req *request.Request, output *DeleteCustomMetadataOutput)

DeleteCustomMetadataRequest generates a "aws/request.Request" representing the client's request for the DeleteCustomMetadata operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteCustomMetadata for more information on using the DeleteCustomMetadata API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteCustomMetadataRequest method. req, resp := client.DeleteCustomMetadataRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteCustomMetadata

DeleteCustomMetadataWithContext

func (c *WorkDocs) DeleteCustomMetadataWithContext(ctx aws.Context, input *DeleteCustomMetadataInput, opts ...request.Option) (*DeleteCustomMetadataOutput, error)

DeleteCustomMetadataWithContext is the same as DeleteCustomMetadata with the addition of the ability to pass a context and additional request options.

See DeleteCustomMetadata for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteDocument

func (c *WorkDocs) DeleteDocument(input *DeleteDocumentInput) (*DeleteDocumentOutput, error)

DeleteDocument API operation for Amazon WorkDocs.

Permanently deletes the specified document and its associated metadata.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DeleteDocument for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeConflictingOperationException "ConflictingOperationException" Another operation is in progress on the resource that conflicts with the current operation.

  • ErrCodeConcurrentModificationException "ConcurrentModificationException" The resource hierarchy is changing.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteDocument

DeleteDocumentRequest

func (c *WorkDocs) DeleteDocumentRequest(input *DeleteDocumentInput) (req *request.Request, output *DeleteDocumentOutput)

DeleteDocumentRequest generates a "aws/request.Request" representing the client's request for the DeleteDocument operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteDocument for more information on using the DeleteDocument API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteDocumentRequest method. req, resp := client.DeleteDocumentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteDocument

DeleteDocumentWithContext

func (c *WorkDocs) DeleteDocumentWithContext(ctx aws.Context, input *DeleteDocumentInput, opts ...request.Option) (*DeleteDocumentOutput, error)

DeleteDocumentWithContext is the same as DeleteDocument with the addition of the ability to pass a context and additional request options.

See DeleteDocument for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteFolder

func (c *WorkDocs) DeleteFolder(input *DeleteFolderInput) (*DeleteFolderOutput, error)

DeleteFolder API operation for Amazon WorkDocs.

Permanently deletes the specified folder and its contents.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DeleteFolder for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeConflictingOperationException "ConflictingOperationException" Another operation is in progress on the resource that conflicts with the current operation.

  • ErrCodeConcurrentModificationException "ConcurrentModificationException" The resource hierarchy is changing.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolder

DeleteFolderContents

func (c *WorkDocs) DeleteFolderContents(input *DeleteFolderContentsInput) (*DeleteFolderContentsOutput, error)

DeleteFolderContents API operation for Amazon WorkDocs.

Deletes the contents of the specified folder.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DeleteFolderContents for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeConflictingOperationException "ConflictingOperationException" Another operation is in progress on the resource that conflicts with the current operation.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderContents

DeleteFolderContentsRequest

func (c *WorkDocs) DeleteFolderContentsRequest(input *DeleteFolderContentsInput) (req *request.Request, output *DeleteFolderContentsOutput)

DeleteFolderContentsRequest generates a "aws/request.Request" representing the client's request for the DeleteFolderContents operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteFolderContents for more information on using the DeleteFolderContents API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteFolderContentsRequest method. req, resp := client.DeleteFolderContentsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderContents

DeleteFolderContentsWithContext

func (c *WorkDocs) DeleteFolderContentsWithContext(ctx aws.Context, input *DeleteFolderContentsInput, opts ...request.Option) (*DeleteFolderContentsOutput, error)

DeleteFolderContentsWithContext is the same as DeleteFolderContents with the addition of the ability to pass a context and additional request options.

See DeleteFolderContents for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteFolderRequest

func (c *WorkDocs) DeleteFolderRequest(input *DeleteFolderInput) (req *request.Request, output *DeleteFolderOutput)

DeleteFolderRequest generates a "aws/request.Request" representing the client's request for the DeleteFolder operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteFolder for more information on using the DeleteFolder API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteFolderRequest method. req, resp := client.DeleteFolderRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolder

DeleteFolderWithContext

func (c *WorkDocs) DeleteFolderWithContext(ctx aws.Context, input *DeleteFolderInput, opts ...request.Option) (*DeleteFolderOutput, error)

DeleteFolderWithContext is the same as DeleteFolder with the addition of the ability to pass a context and additional request options.

See DeleteFolder for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteLabels

func (c *WorkDocs) DeleteLabels(input *DeleteLabelsInput) (*DeleteLabelsOutput, error)

DeleteLabels API operation for Amazon WorkDocs.

Deletes the specified list of labels from a resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DeleteLabels for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteLabels

DeleteLabelsRequest

func (c *WorkDocs) DeleteLabelsRequest(input *DeleteLabelsInput) (req *request.Request, output *DeleteLabelsOutput)

DeleteLabelsRequest generates a "aws/request.Request" representing the client's request for the DeleteLabels operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteLabels for more information on using the DeleteLabels API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteLabelsRequest method. req, resp := client.DeleteLabelsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteLabels

DeleteLabelsWithContext

func (c *WorkDocs) DeleteLabelsWithContext(ctx aws.Context, input *DeleteLabelsInput, opts ...request.Option) (*DeleteLabelsOutput, error)

DeleteLabelsWithContext is the same as DeleteLabels with the addition of the ability to pass a context and additional request options.

See DeleteLabels for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteNotificationSubscription

func (c *WorkDocs) DeleteNotificationSubscription(input *DeleteNotificationSubscriptionInput) (*DeleteNotificationSubscriptionOutput, error)

DeleteNotificationSubscription API operation for Amazon WorkDocs.

Deletes the specified subscription from the specified organization.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DeleteNotificationSubscription for usage and error information.

Returned Error Codes:

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteNotificationSubscription

DeleteNotificationSubscriptionRequest

func (c *WorkDocs) DeleteNotificationSubscriptionRequest(input *DeleteNotificationSubscriptionInput) (req *request.Request, output *DeleteNotificationSubscriptionOutput)

DeleteNotificationSubscriptionRequest generates a "aws/request.Request" representing the client's request for the DeleteNotificationSubscription operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteNotificationSubscription for more information on using the DeleteNotificationSubscription API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteNotificationSubscriptionRequest method. req, resp := client.DeleteNotificationSubscriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteNotificationSubscription

DeleteNotificationSubscriptionWithContext

func (c *WorkDocs) DeleteNotificationSubscriptionWithContext(ctx aws.Context, input *DeleteNotificationSubscriptionInput, opts ...request.Option) (*DeleteNotificationSubscriptionOutput, error)

DeleteNotificationSubscriptionWithContext is the same as DeleteNotificationSubscription with the addition of the ability to pass a context and additional request options.

See DeleteNotificationSubscription for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteUser

func (c *WorkDocs) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error)

DeleteUser API operation for Amazon WorkDocs.

Deletes the specified user from a Simple AD or Microsoft AD directory.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DeleteUser for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteUser

DeleteUserRequest

func (c *WorkDocs) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput)

DeleteUserRequest generates a "aws/request.Request" representing the client's request for the DeleteUser operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteUser for more information on using the DeleteUser API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteUserRequest method. req, resp := client.DeleteUserRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteUser

DeleteUserWithContext

func (c *WorkDocs) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error)

DeleteUserWithContext is the same as DeleteUser with the addition of the ability to pass a context and additional request options.

See DeleteUser for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeActivities

func (c *WorkDocs) DescribeActivities(input *DescribeActivitiesInput) (*DescribeActivitiesOutput, error)

DescribeActivities API operation for Amazon WorkDocs.

Describes the user activities in a specified time period.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DescribeActivities for usage and error information.

Returned Error Codes:

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeInvalidArgumentException "InvalidArgumentException" The pagination marker or limit fields are not valid.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeActivities

DescribeActivitiesRequest

func (c *WorkDocs) DescribeActivitiesRequest(input *DescribeActivitiesInput) (req *request.Request, output *DescribeActivitiesOutput)

DescribeActivitiesRequest generates a "aws/request.Request" representing the client's request for the DescribeActivities operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeActivities for more information on using the DescribeActivities API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeActivitiesRequest method. req, resp := client.DescribeActivitiesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeActivities

DescribeActivitiesWithContext

func (c *WorkDocs) DescribeActivitiesWithContext(ctx aws.Context, input *DescribeActivitiesInput, opts ...request.Option) (*DescribeActivitiesOutput, error)

DescribeActivitiesWithContext is the same as DescribeActivities with the addition of the ability to pass a context and additional request options.

See DescribeActivities for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeComments

func (c *WorkDocs) DescribeComments(input *DescribeCommentsInput) (*DescribeCommentsOutput, error)

DescribeComments API operation for Amazon WorkDocs.

List all the comments for the specified document version.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DescribeComments for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeComments

DescribeCommentsRequest

func (c *WorkDocs) DescribeCommentsRequest(input *DescribeCommentsInput) (req *request.Request, output *DescribeCommentsOutput)

DescribeCommentsRequest generates a "aws/request.Request" representing the client's request for the DescribeComments operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeComments for more information on using the DescribeComments API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeCommentsRequest method. req, resp := client.DescribeCommentsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeComments

DescribeCommentsWithContext

func (c *WorkDocs) DescribeCommentsWithContext(ctx aws.Context, input *DescribeCommentsInput, opts ...request.Option) (*DescribeCommentsOutput, error)

DescribeCommentsWithContext is the same as DescribeComments with the addition of the ability to pass a context and additional request options.

See DescribeComments for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeDocumentVersions

func (c *WorkDocs) DescribeDocumentVersions(input *DescribeDocumentVersionsInput) (*DescribeDocumentVersionsOutput, error)

DescribeDocumentVersions API operation for Amazon WorkDocs.

Retrieves the document versions for the specified document.

By default, only active versions are returned.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DescribeDocumentVersions for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeInvalidArgumentException "InvalidArgumentException" The pagination marker or limit fields are not valid.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeDocumentVersions

DescribeDocumentVersionsPages

func (c *WorkDocs) DescribeDocumentVersionsPages(input *DescribeDocumentVersionsInput, fn func(*DescribeDocumentVersionsOutput, bool) bool) error

DescribeDocumentVersionsPages iterates over the pages of a DescribeDocumentVersions operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeDocumentVersions method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeDocumentVersions operation. pageNum := 0 err := client.DescribeDocumentVersionsPages(params, func(page *DescribeDocumentVersionsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeDocumentVersionsPagesWithContext

func (c *WorkDocs) DescribeDocumentVersionsPagesWithContext(ctx aws.Context, input *DescribeDocumentVersionsInput, fn func(*DescribeDocumentVersionsOutput, bool) bool, opts ...request.Option) error

DescribeDocumentVersionsPagesWithContext same as DescribeDocumentVersionsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeDocumentVersionsRequest

func (c *WorkDocs) DescribeDocumentVersionsRequest(input *DescribeDocumentVersionsInput) (req *request.Request, output *DescribeDocumentVersionsOutput)

DescribeDocumentVersionsRequest generates a "aws/request.Request" representing the client's request for the DescribeDocumentVersions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeDocumentVersions for more information on using the DescribeDocumentVersions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeDocumentVersionsRequest method. req, resp := client.DescribeDocumentVersionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeDocumentVersions

DescribeDocumentVersionsWithContext

func (c *WorkDocs) DescribeDocumentVersionsWithContext(ctx aws.Context, input *DescribeDocumentVersionsInput, opts ...request.Option) (*DescribeDocumentVersionsOutput, error)

DescribeDocumentVersionsWithContext is the same as DescribeDocumentVersions with the addition of the ability to pass a context and additional request options.

See DescribeDocumentVersions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeFolderContents

func (c *WorkDocs) DescribeFolderContents(input *DescribeFolderContentsInput) (*DescribeFolderContentsOutput, error)

DescribeFolderContents API operation for Amazon WorkDocs.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DescribeFolderContents for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeInvalidArgumentException "InvalidArgumentException" The pagination marker or limit fields are not valid.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeFolderContents

DescribeFolderContentsPages

func (c *WorkDocs) DescribeFolderContentsPages(input *DescribeFolderContentsInput, fn func(*DescribeFolderContentsOutput, bool) bool) error

DescribeFolderContentsPages iterates over the pages of a DescribeFolderContents operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeFolderContents method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeFolderContents operation. pageNum := 0 err := client.DescribeFolderContentsPages(params, func(page *DescribeFolderContentsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeFolderContentsPagesWithContext

func (c *WorkDocs) DescribeFolderContentsPagesWithContext(ctx aws.Context, input *DescribeFolderContentsInput, fn func(*DescribeFolderContentsOutput, bool) bool, opts ...request.Option) error

DescribeFolderContentsPagesWithContext same as DescribeFolderContentsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeFolderContentsRequest

func (c *WorkDocs) DescribeFolderContentsRequest(input *DescribeFolderContentsInput) (req *request.Request, output *DescribeFolderContentsOutput)

DescribeFolderContentsRequest generates a "aws/request.Request" representing the client's request for the DescribeFolderContents operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeFolderContents for more information on using the DescribeFolderContents API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeFolderContentsRequest method. req, resp := client.DescribeFolderContentsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeFolderContents

DescribeFolderContentsWithContext

func (c *WorkDocs) DescribeFolderContentsWithContext(ctx aws.Context, input *DescribeFolderContentsInput, opts ...request.Option) (*DescribeFolderContentsOutput, error)

DescribeFolderContentsWithContext is the same as DescribeFolderContents with the addition of the ability to pass a context and additional request options.

See DescribeFolderContents for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeGroups

func (c *WorkDocs) DescribeGroups(input *DescribeGroupsInput) (*DescribeGroupsOutput, error)

DescribeGroups API operation for Amazon WorkDocs.

Describes the groups specified by the query. Groups are defined by the underlying Active Directory.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DescribeGroups for usage and error information.

Returned Error Codes:

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeGroups

DescribeGroupsRequest

func (c *WorkDocs) DescribeGroupsRequest(input *DescribeGroupsInput) (req *request.Request, output *DescribeGroupsOutput)

DescribeGroupsRequest generates a "aws/request.Request" representing the client's request for the DescribeGroups operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeGroups for more information on using the DescribeGroups API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeGroupsRequest method. req, resp := client.DescribeGroupsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeGroups

DescribeGroupsWithContext

func (c *WorkDocs) DescribeGroupsWithContext(ctx aws.Context, input *DescribeGroupsInput, opts ...request.Option) (*DescribeGroupsOutput, error)

DescribeGroupsWithContext is the same as DescribeGroups with the addition of the ability to pass a context and additional request options.

See DescribeGroups for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeNotificationSubscriptions

func (c *WorkDocs) DescribeNotificationSubscriptions(input *DescribeNotificationSubscriptionsInput) (*DescribeNotificationSubscriptionsOutput, error)

DescribeNotificationSubscriptions API operation for Amazon WorkDocs.

Lists the specified notification subscriptions.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DescribeNotificationSubscriptions for usage and error information.

Returned Error Codes:

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeNotificationSubscriptions

DescribeNotificationSubscriptionsRequest

func (c *WorkDocs) DescribeNotificationSubscriptionsRequest(input *DescribeNotificationSubscriptionsInput) (req *request.Request, output *DescribeNotificationSubscriptionsOutput)

DescribeNotificationSubscriptionsRequest generates a "aws/request.Request" representing the client's request for the DescribeNotificationSubscriptions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeNotificationSubscriptions for more information on using the DescribeNotificationSubscriptions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeNotificationSubscriptionsRequest method. req, resp := client.DescribeNotificationSubscriptionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeNotificationSubscriptions

DescribeNotificationSubscriptionsWithContext

func (c *WorkDocs) DescribeNotificationSubscriptionsWithContext(ctx aws.Context, input *DescribeNotificationSubscriptionsInput, opts ...request.Option) (*DescribeNotificationSubscriptionsOutput, error)

DescribeNotificationSubscriptionsWithContext is the same as DescribeNotificationSubscriptions with the addition of the ability to pass a context and additional request options.

See DescribeNotificationSubscriptions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeResourcePermissions

func (c *WorkDocs) DescribeResourcePermissions(input *DescribeResourcePermissionsInput) (*DescribeResourcePermissionsOutput, error)

DescribeResourcePermissions API operation for Amazon WorkDocs.

Describes the permissions of a specified resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DescribeResourcePermissions for usage and error information.

Returned Error Codes:

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeResourcePermissions

DescribeResourcePermissionsRequest

func (c *WorkDocs) DescribeResourcePermissionsRequest(input *DescribeResourcePermissionsInput) (req *request.Request, output *DescribeResourcePermissionsOutput)

DescribeResourcePermissionsRequest generates a "aws/request.Request" representing the client's request for the DescribeResourcePermissions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeResourcePermissions for more information on using the DescribeResourcePermissions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeResourcePermissionsRequest method. req, resp := client.DescribeResourcePermissionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeResourcePermissions

DescribeResourcePermissionsWithContext

func (c *WorkDocs) DescribeResourcePermissionsWithContext(ctx aws.Context, input *DescribeResourcePermissionsInput, opts ...request.Option) (*DescribeResourcePermissionsOutput, error)

DescribeResourcePermissionsWithContext is the same as DescribeResourcePermissions with the addition of the ability to pass a context and additional request options.

See DescribeResourcePermissions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeRootFolders

func (c *WorkDocs) DescribeRootFolders(input *DescribeRootFoldersInput) (*DescribeRootFoldersOutput, error)

DescribeRootFolders API operation for Amazon WorkDocs.

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 Applications (https://docs.aws.amazon.com/workdocs/latest/developerguide/wd-auth-user.html) in the Amazon WorkDocs Developer Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DescribeRootFolders for usage and error information.

Returned Error Codes:

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeInvalidArgumentException "InvalidArgumentException" The pagination marker or limit fields are not valid.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeRootFolders

DescribeRootFoldersRequest

func (c *WorkDocs) DescribeRootFoldersRequest(input *DescribeRootFoldersInput) (req *request.Request, output *DescribeRootFoldersOutput)

DescribeRootFoldersRequest generates a "aws/request.Request" representing the client's request for the DescribeRootFolders operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeRootFolders for more information on using the DescribeRootFolders API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeRootFoldersRequest method. req, resp := client.DescribeRootFoldersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeRootFolders

DescribeRootFoldersWithContext

func (c *WorkDocs) DescribeRootFoldersWithContext(ctx aws.Context, input *DescribeRootFoldersInput, opts ...request.Option) (*DescribeRootFoldersOutput, error)

DescribeRootFoldersWithContext is the same as DescribeRootFolders with the addition of the ability to pass a context and additional request options.

See DescribeRootFolders for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeUsers

func (c *WorkDocs) DescribeUsers(input *DescribeUsersInput) (*DescribeUsersOutput, error)

DescribeUsers API operation for Amazon WorkDocs.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation DescribeUsers for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

  • ErrCodeInvalidArgumentException "InvalidArgumentException" The pagination marker or limit fields are not valid.

  • ErrCodeRequestedEntityTooLargeException "RequestedEntityTooLargeException" The response is too large to return. The request must include a filter to reduce the size of the response.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeUsers

DescribeUsersPages

func (c *WorkDocs) DescribeUsersPages(input *DescribeUsersInput, fn func(*DescribeUsersOutput, bool) bool) error

DescribeUsersPages iterates over the pages of a DescribeUsers operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeUsers method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeUsers operation. pageNum := 0 err := client.DescribeUsersPages(params, func(page *DescribeUsersOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeUsersPagesWithContext

func (c *WorkDocs) DescribeUsersPagesWithContext(ctx aws.Context, input *DescribeUsersInput, fn func(*DescribeUsersOutput, bool) bool, opts ...request.Option) error

DescribeUsersPagesWithContext same as DescribeUsersPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeUsersRequest

func (c *WorkDocs) DescribeUsersRequest(input *DescribeUsersInput) (req *request.Request, output *DescribeUsersOutput)

DescribeUsersRequest generates a "aws/request.Request" representing the client's request for the DescribeUsers operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeUsers for more information on using the DescribeUsers API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeUsersRequest method. req, resp := client.DescribeUsersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeUsers

DescribeUsersWithContext

func (c *WorkDocs) DescribeUsersWithContext(ctx aws.Context, input *DescribeUsersInput, opts ...request.Option) (*DescribeUsersOutput, error)

DescribeUsersWithContext is the same as DescribeUsers with the addition of the ability to pass a context and additional request options.

See DescribeUsers for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetCurrentUser

func (c *WorkDocs) GetCurrentUser(input *GetCurrentUserInput) (*GetCurrentUserOutput, error)

GetCurrentUser API operation for Amazon WorkDocs.

Retrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation GetCurrentUser for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetCurrentUser

GetCurrentUserRequest

func (c *WorkDocs) GetCurrentUserRequest(input *GetCurrentUserInput) (req *request.Request, output *GetCurrentUserOutput)

GetCurrentUserRequest generates a "aws/request.Request" representing the client's request for the GetCurrentUser operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCurrentUser for more information on using the GetCurrentUser API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCurrentUserRequest method. req, resp := client.GetCurrentUserRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetCurrentUser

GetCurrentUserWithContext

func (c *WorkDocs) GetCurrentUserWithContext(ctx aws.Context, input *GetCurrentUserInput, opts ...request.Option) (*GetCurrentUserOutput, error)

GetCurrentUserWithContext is the same as GetCurrentUser with the addition of the ability to pass a context and additional request options.

See GetCurrentUser for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetDocument

func (c *WorkDocs) GetDocument(input *GetDocumentInput) (*GetDocumentOutput, error)

GetDocument API operation for Amazon WorkDocs.

Retrieves details of a document.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation GetDocument for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeInvalidArgumentException "InvalidArgumentException" The pagination marker or limit fields are not valid.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

  • ErrCodeInvalidPasswordException "InvalidPasswordException" The password is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocument

GetDocumentPath

func (c *WorkDocs) GetDocumentPath(input *GetDocumentPathInput) (*GetDocumentPathOutput, error)

GetDocumentPath API operation for Amazon WorkDocs.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation GetDocumentPath for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentPath

GetDocumentPathRequest

func (c *WorkDocs) GetDocumentPathRequest(input *GetDocumentPathInput) (req *request.Request, output *GetDocumentPathOutput)

GetDocumentPathRequest generates a "aws/request.Request" representing the client's request for the GetDocumentPath operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetDocumentPath for more information on using the GetDocumentPath API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetDocumentPathRequest method. req, resp := client.GetDocumentPathRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentPath

GetDocumentPathWithContext

func (c *WorkDocs) GetDocumentPathWithContext(ctx aws.Context, input *GetDocumentPathInput, opts ...request.Option) (*GetDocumentPathOutput, error)

GetDocumentPathWithContext is the same as GetDocumentPath with the addition of the ability to pass a context and additional request options.

See GetDocumentPath for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetDocumentRequest

func (c *WorkDocs) GetDocumentRequest(input *GetDocumentInput) (req *request.Request, output *GetDocumentOutput)

GetDocumentRequest generates a "aws/request.Request" representing the client's request for the GetDocument operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetDocument for more information on using the GetDocument API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetDocumentRequest method. req, resp := client.GetDocumentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocument

GetDocumentVersion

func (c *WorkDocs) GetDocumentVersion(input *GetDocumentVersionInput) (*GetDocumentVersionOutput, error)

GetDocumentVersion API operation for Amazon WorkDocs.

Retrieves version metadata for the specified document.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation GetDocumentVersion for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeInvalidPasswordException "InvalidPasswordException" The password is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentVersion

GetDocumentVersionRequest

func (c *WorkDocs) GetDocumentVersionRequest(input *GetDocumentVersionInput) (req *request.Request, output *GetDocumentVersionOutput)

GetDocumentVersionRequest generates a "aws/request.Request" representing the client's request for the GetDocumentVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetDocumentVersion for more information on using the GetDocumentVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetDocumentVersionRequest method. req, resp := client.GetDocumentVersionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentVersion

GetDocumentVersionWithContext

func (c *WorkDocs) GetDocumentVersionWithContext(ctx aws.Context, input *GetDocumentVersionInput, opts ...request.Option) (*GetDocumentVersionOutput, error)

GetDocumentVersionWithContext is the same as GetDocumentVersion with the addition of the ability to pass a context and additional request options.

See GetDocumentVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetDocumentWithContext

func (c *WorkDocs) GetDocumentWithContext(ctx aws.Context, input *GetDocumentInput, opts ...request.Option) (*GetDocumentOutput, error)

GetDocumentWithContext is the same as GetDocument with the addition of the ability to pass a context and additional request options.

See GetDocument for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetFolder

func (c *WorkDocs) GetFolder(input *GetFolderInput) (*GetFolderOutput, error)

GetFolder API operation for Amazon WorkDocs.

Retrieves the metadata of the specified folder.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation GetFolder for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeInvalidArgumentException "InvalidArgumentException" The pagination marker or limit fields are not valid.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolder

GetFolderPath

func (c *WorkDocs) GetFolderPath(input *GetFolderPathInput) (*GetFolderPathOutput, error)

GetFolderPath API operation for Amazon WorkDocs.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation GetFolderPath for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderPath

GetFolderPathRequest

func (c *WorkDocs) GetFolderPathRequest(input *GetFolderPathInput) (req *request.Request, output *GetFolderPathOutput)

GetFolderPathRequest generates a "aws/request.Request" representing the client's request for the GetFolderPath operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetFolderPath for more information on using the GetFolderPath API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetFolderPathRequest method. req, resp := client.GetFolderPathRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderPath

GetFolderPathWithContext

func (c *WorkDocs) GetFolderPathWithContext(ctx aws.Context, input *GetFolderPathInput, opts ...request.Option) (*GetFolderPathOutput, error)

GetFolderPathWithContext is the same as GetFolderPath with the addition of the ability to pass a context and additional request options.

See GetFolderPath for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetFolderRequest

func (c *WorkDocs) GetFolderRequest(input *GetFolderInput) (req *request.Request, output *GetFolderOutput)

GetFolderRequest generates a "aws/request.Request" representing the client's request for the GetFolder operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetFolder for more information on using the GetFolder API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetFolderRequest method. req, resp := client.GetFolderRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolder

GetFolderWithContext

func (c *WorkDocs) GetFolderWithContext(ctx aws.Context, input *GetFolderInput, opts ...request.Option) (*GetFolderOutput, error)

GetFolderWithContext is the same as GetFolder with the addition of the ability to pass a context and additional request options.

See GetFolder for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetResources

func (c *WorkDocs) GetResources(input *GetResourcesInput) (*GetResourcesOutput, error)

GetResources API operation for Amazon WorkDocs.

Retrieves a collection of resources, including folders and documents. The only CollectionType supported is SHARED_WITH_ME.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation GetResources for usage and error information.

Returned Error Codes:

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeInvalidArgumentException "InvalidArgumentException" The pagination marker or limit fields are not valid.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetResources

GetResourcesRequest

func (c *WorkDocs) GetResourcesRequest(input *GetResourcesInput) (req *request.Request, output *GetResourcesOutput)

GetResourcesRequest generates a "aws/request.Request" representing the client's request for the GetResources operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetResources for more information on using the GetResources API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetResourcesRequest method. req, resp := client.GetResourcesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetResources

GetResourcesWithContext

func (c *WorkDocs) GetResourcesWithContext(ctx aws.Context, input *GetResourcesInput, opts ...request.Option) (*GetResourcesOutput, error)

GetResourcesWithContext is the same as GetResources with the addition of the ability to pass a context and additional request options.

See GetResources for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

InitiateDocumentVersionUpload

func (c *WorkDocs) InitiateDocumentVersionUpload(input *InitiateDocumentVersionUploadInput) (*InitiateDocumentVersionUploadOutput, error)

InitiateDocumentVersionUpload API operation for Amazon WorkDocs.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation InitiateDocumentVersionUpload for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" The resource already exists.

  • ErrCodeStorageLimitExceededException "StorageLimitExceededException" The storage limit has been exceeded.

  • ErrCodeStorageLimitWillExceedException "StorageLimitWillExceedException" The storage limit will be exceeded.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

  • ErrCodeDraftUploadOutOfSyncException "DraftUploadOutOfSyncException" This exception is thrown when a valid checkout ID is not presented on document version upload calls for a document that has been checked out from Web client.

  • ErrCodeResourceAlreadyCheckedOutException "ResourceAlreadyCheckedOutException" The resource is already checked out.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/InitiateDocumentVersionUpload

InitiateDocumentVersionUploadRequest

func (c *WorkDocs) InitiateDocumentVersionUploadRequest(input *InitiateDocumentVersionUploadInput) (req *request.Request, output *InitiateDocumentVersionUploadOutput)

InitiateDocumentVersionUploadRequest generates a "aws/request.Request" representing the client's request for the InitiateDocumentVersionUpload operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See InitiateDocumentVersionUpload for more information on using the InitiateDocumentVersionUpload API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the InitiateDocumentVersionUploadRequest method. req, resp := client.InitiateDocumentVersionUploadRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/InitiateDocumentVersionUpload

InitiateDocumentVersionUploadWithContext

func (c *WorkDocs) InitiateDocumentVersionUploadWithContext(ctx aws.Context, input *InitiateDocumentVersionUploadInput, opts ...request.Option) (*InitiateDocumentVersionUploadOutput, error)

InitiateDocumentVersionUploadWithContext is the same as InitiateDocumentVersionUpload with the addition of the ability to pass a context and additional request options.

See InitiateDocumentVersionUpload for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RemoveAllResourcePermissions

func (c *WorkDocs) RemoveAllResourcePermissions(input *RemoveAllResourcePermissionsInput) (*RemoveAllResourcePermissionsOutput, error)

RemoveAllResourcePermissions API operation for Amazon WorkDocs.

Removes all the permissions from the specified resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation RemoveAllResourcePermissions for usage and error information.

Returned Error Codes:

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveAllResourcePermissions

RemoveAllResourcePermissionsRequest

func (c *WorkDocs) RemoveAllResourcePermissionsRequest(input *RemoveAllResourcePermissionsInput) (req *request.Request, output *RemoveAllResourcePermissionsOutput)

RemoveAllResourcePermissionsRequest generates a "aws/request.Request" representing the client's request for the RemoveAllResourcePermissions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RemoveAllResourcePermissions for more information on using the RemoveAllResourcePermissions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RemoveAllResourcePermissionsRequest method. req, resp := client.RemoveAllResourcePermissionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveAllResourcePermissions

RemoveAllResourcePermissionsWithContext

func (c *WorkDocs) RemoveAllResourcePermissionsWithContext(ctx aws.Context, input *RemoveAllResourcePermissionsInput, opts ...request.Option) (*RemoveAllResourcePermissionsOutput, error)

RemoveAllResourcePermissionsWithContext is the same as RemoveAllResourcePermissions with the addition of the ability to pass a context and additional request options.

See RemoveAllResourcePermissions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RemoveResourcePermission

func (c *WorkDocs) RemoveResourcePermission(input *RemoveResourcePermissionInput) (*RemoveResourcePermissionOutput, error)

RemoveResourcePermission API operation for Amazon WorkDocs.

Removes the permission for the specified principal from the specified resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation RemoveResourcePermission for usage and error information.

Returned Error Codes:

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveResourcePermission

RemoveResourcePermissionRequest

func (c *WorkDocs) RemoveResourcePermissionRequest(input *RemoveResourcePermissionInput) (req *request.Request, output *RemoveResourcePermissionOutput)

RemoveResourcePermissionRequest generates a "aws/request.Request" representing the client's request for the RemoveResourcePermission operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RemoveResourcePermission for more information on using the RemoveResourcePermission API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RemoveResourcePermissionRequest method. req, resp := client.RemoveResourcePermissionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveResourcePermission

RemoveResourcePermissionWithContext

func (c *WorkDocs) RemoveResourcePermissionWithContext(ctx aws.Context, input *RemoveResourcePermissionInput, opts ...request.Option) (*RemoveResourcePermissionOutput, error)

RemoveResourcePermissionWithContext is the same as RemoveResourcePermission with the addition of the ability to pass a context and additional request options.

See RemoveResourcePermission for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateDocument

func (c *WorkDocs) UpdateDocument(input *UpdateDocumentInput) (*UpdateDocumentOutput, error)

UpdateDocument API operation for Amazon WorkDocs.

Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation UpdateDocument for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" The resource already exists.

  • ErrCodeLimitExceededException "LimitExceededException" The maximum of 100,000 folders under the parent folder has been exceeded.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeConflictingOperationException "ConflictingOperationException" Another operation is in progress on the resource that conflicts with the current operation.

  • ErrCodeConcurrentModificationException "ConcurrentModificationException" The resource hierarchy is changing.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocument

UpdateDocumentRequest

func (c *WorkDocs) UpdateDocumentRequest(input *UpdateDocumentInput) (req *request.Request, output *UpdateDocumentOutput)

UpdateDocumentRequest generates a "aws/request.Request" representing the client's request for the UpdateDocument operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateDocument for more information on using the UpdateDocument API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateDocumentRequest method. req, resp := client.UpdateDocumentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocument

UpdateDocumentVersion

func (c *WorkDocs) UpdateDocumentVersion(input *UpdateDocumentVersionInput) (*UpdateDocumentVersionOutput, error)

UpdateDocumentVersion API operation for Amazon WorkDocs.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation UpdateDocumentVersion for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeConcurrentModificationException "ConcurrentModificationException" The resource hierarchy is changing.

  • ErrCodeInvalidOperationException "InvalidOperationException" The operation is invalid.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentVersion

UpdateDocumentVersionRequest

func (c *WorkDocs) UpdateDocumentVersionRequest(input *UpdateDocumentVersionInput) (req *request.Request, output *UpdateDocumentVersionOutput)

UpdateDocumentVersionRequest generates a "aws/request.Request" representing the client's request for the UpdateDocumentVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateDocumentVersion for more information on using the UpdateDocumentVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateDocumentVersionRequest method. req, resp := client.UpdateDocumentVersionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentVersion

UpdateDocumentVersionWithContext

func (c *WorkDocs) UpdateDocumentVersionWithContext(ctx aws.Context, input *UpdateDocumentVersionInput, opts ...request.Option) (*UpdateDocumentVersionOutput, error)

UpdateDocumentVersionWithContext is the same as UpdateDocumentVersion with the addition of the ability to pass a context and additional request options.

See UpdateDocumentVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateDocumentWithContext

func (c *WorkDocs) UpdateDocumentWithContext(ctx aws.Context, input *UpdateDocumentInput, opts ...request.Option) (*UpdateDocumentOutput, error)

UpdateDocumentWithContext is the same as UpdateDocument with the addition of the ability to pass a context and additional request options.

See UpdateDocument for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateFolder

func (c *WorkDocs) UpdateFolder(input *UpdateFolderInput) (*UpdateFolderOutput, error)

UpdateFolder API operation for Amazon WorkDocs.

Updates the specified attributes of the specified folder. The user must have access to both the folder and its parent folder, if applicable.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation UpdateFolder for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" The resource already exists.

  • ErrCodeProhibitedStateException "ProhibitedStateException" The specified document version is not in the INITIALIZED state.

  • ErrCodeConflictingOperationException "ConflictingOperationException" Another operation is in progress on the resource that conflicts with the current operation.

  • ErrCodeConcurrentModificationException "ConcurrentModificationException" The resource hierarchy is changing.

  • ErrCodeLimitExceededException "LimitExceededException" The maximum of 100,000 folders under the parent folder has been exceeded.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateFolder

UpdateFolderRequest

func (c *WorkDocs) UpdateFolderRequest(input *UpdateFolderInput) (req *request.Request, output *UpdateFolderOutput)

UpdateFolderRequest generates a "aws/request.Request" representing the client's request for the UpdateFolder operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateFolder for more information on using the UpdateFolder API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateFolderRequest method. req, resp := client.UpdateFolderRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateFolder

UpdateFolderWithContext

func (c *WorkDocs) UpdateFolderWithContext(ctx aws.Context, input *UpdateFolderInput, opts ...request.Option) (*UpdateFolderOutput, error)

UpdateFolderWithContext is the same as UpdateFolder with the addition of the ability to pass a context and additional request options.

See UpdateFolder for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateUser

func (c *WorkDocs) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error)

UpdateUser API operation for Amazon WorkDocs.

Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon WorkDocs's API operation UpdateUser for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotExistsException "EntityNotExistsException" The resource does not exist.

  • ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" The operation is not permitted.

  • ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" The caller does not have access to perform the action on the resource.

  • ErrCodeIllegalUserStateException "IllegalUserStateException" The user is undergoing transfer of ownership.

  • ErrCodeFailedDependencyException "FailedDependencyException" The AWS Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" One or more of the dependencies is unavailable.

  • ErrCodeDeactivatingLastSystemUserException "DeactivatingLastSystemUserException" The last user in the organization is being deactivated.

  • ErrCodeInvalidArgumentException "InvalidArgumentException" The pagination marker or limit fields are not valid.

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateUser

UpdateUserRequest

func (c *WorkDocs) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, output *UpdateUserOutput)

UpdateUserRequest generates a "aws/request.Request" representing the client's request for the UpdateUser operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateUser for more information on using the UpdateUser API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateUserRequest method. req, resp := client.UpdateUserRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateUser

UpdateUserWithContext

func (c *WorkDocs) UpdateUserWithContext(ctx aws.Context, input *UpdateUserInput, opts ...request.Option) (*UpdateUserOutput, error)

UpdateUserWithContext is the same as UpdateUser with the addition of the ability to pass a context and additional request options.

See UpdateUser for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

On this page: