workdocs

package
v1.7.10-0...-5b99715 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package workdocs provides a client for Amazon WorkDocs.

Index

Examples

Constants

View Source
const (
	// DocumentSourceTypeOriginal is a DocumentSourceType enum value
	DocumentSourceTypeOriginal = "ORIGINAL"

	// DocumentSourceTypeWithComments is a DocumentSourceType enum value
	DocumentSourceTypeWithComments = "WITH_COMMENTS"
)
View Source
const (
	// DocumentStatusTypeInitialized is a DocumentStatusType enum value
	DocumentStatusTypeInitialized = "INITIALIZED"

	// DocumentStatusTypeActive is a DocumentStatusType enum value
	DocumentStatusTypeActive = "ACTIVE"
)
View Source
const (
	// DocumentThumbnailTypeSmall is a DocumentThumbnailType enum value
	DocumentThumbnailTypeSmall = "SMALL"

	// DocumentThumbnailTypeSmallHq is a DocumentThumbnailType enum value
	DocumentThumbnailTypeSmallHq = "SMALL_HQ"

	// DocumentThumbnailTypeLarge is a DocumentThumbnailType enum value
	DocumentThumbnailTypeLarge = "LARGE"
)
View Source
const (
	// FolderContentTypeAll is a FolderContentType enum value
	FolderContentTypeAll = "ALL"

	// FolderContentTypeDocument is a FolderContentType enum value
	FolderContentTypeDocument = "DOCUMENT"

	// FolderContentTypeFolder is a FolderContentType enum value
	FolderContentTypeFolder = "FOLDER"
)
View Source
const (
	// LocaleTypeEn is a LocaleType enum value
	LocaleTypeEn = "en"

	// LocaleTypeFr is a LocaleType enum value
	LocaleTypeFr = "fr"

	// LocaleTypeKo is a LocaleType enum value
	LocaleTypeKo = "ko"

	// LocaleTypeDe is a LocaleType enum value
	LocaleTypeDe = "de"

	// LocaleTypeEs is a LocaleType enum value
	LocaleTypeEs = "es"

	// LocaleTypeJa is a LocaleType enum value
	LocaleTypeJa = "ja"

	// LocaleTypeRu is a LocaleType enum value
	LocaleTypeRu = "ru"

	// LocaleTypeZhCn is a LocaleType enum value
	LocaleTypeZhCn = "zh_CN"

	// LocaleTypeZhTw is a LocaleType enum value
	LocaleTypeZhTw = "zh_TW"

	// LocaleTypePtBr is a LocaleType enum value
	LocaleTypePtBr = "pt_BR"

	// LocaleTypeDefault is a LocaleType enum value
	LocaleTypeDefault = "default"
)
View Source
const (
	// OrderTypeAscending is a OrderType enum value
	OrderTypeAscending = "ASCENDING"

	// OrderTypeDescending is a OrderType enum value
	OrderTypeDescending = "DESCENDING"
)
View Source
const (
	// PrincipalTypeUser is a PrincipalType enum value
	PrincipalTypeUser = "USER"

	// PrincipalTypeGroup is a PrincipalType enum value
	PrincipalTypeGroup = "GROUP"

	// PrincipalTypeInvite is a PrincipalType enum value
	PrincipalTypeInvite = "INVITE"

	// PrincipalTypeAnonymous is a PrincipalType enum value
	PrincipalTypeAnonymous = "ANONYMOUS"

	// PrincipalTypeOrganization is a PrincipalType enum value
	PrincipalTypeOrganization = "ORGANIZATION"
)
View Source
const (
	// ResourceSortTypeDate is a ResourceSortType enum value
	ResourceSortTypeDate = "DATE"

	// ResourceSortTypeName is a ResourceSortType enum value
	ResourceSortTypeName = "NAME"
)
View Source
const (
	// ResourceStateTypeActive is a ResourceStateType enum value
	ResourceStateTypeActive = "ACTIVE"

	// ResourceStateTypeRestoring is a ResourceStateType enum value
	ResourceStateTypeRestoring = "RESTORING"

	// ResourceStateTypeRecycling is a ResourceStateType enum value
	ResourceStateTypeRecycling = "RECYCLING"

	// ResourceStateTypeRecycled is a ResourceStateType enum value
	ResourceStateTypeRecycled = "RECYCLED"
)
View Source
const (
	// RolePermissionTypeDirect is a RolePermissionType enum value
	RolePermissionTypeDirect = "DIRECT"

	// RolePermissionTypeInherited is a RolePermissionType enum value
	RolePermissionTypeInherited = "INHERITED"
)
View Source
const (
	// RoleTypeViewer is a RoleType enum value
	RoleTypeViewer = "VIEWER"

	// RoleTypeContributor is a RoleType enum value
	RoleTypeContributor = "CONTRIBUTOR"

	// RoleTypeOwner is a RoleType enum value
	RoleTypeOwner = "OWNER"

	// RoleTypeCoowner is a RoleType enum value
	RoleTypeCoowner = "COOWNER"
)
View Source
const (
	// ShareStatusTypeSuccess is a ShareStatusType enum value
	ShareStatusTypeSuccess = "SUCCESS"

	// ShareStatusTypeFailure is a ShareStatusType enum value
	ShareStatusTypeFailure = "FAILURE"
)
View Source
const (
	// StorageTypeUnlimited is a StorageType enum value
	StorageTypeUnlimited = "UNLIMITED"

	// StorageTypeQuota is a StorageType enum value
	StorageTypeQuota = "QUOTA"
)
View Source
const (
	// UserFilterTypeAll is a UserFilterType enum value
	UserFilterTypeAll = "ALL"

	// UserFilterTypeActivePending is a UserFilterType enum value
	UserFilterTypeActivePending = "ACTIVE_PENDING"
)
View Source
const (
	// UserSortTypeUserName is a UserSortType enum value
	UserSortTypeUserName = "USER_NAME"

	// UserSortTypeFullName is a UserSortType enum value
	UserSortTypeFullName = "FULL_NAME"

	// UserSortTypeStorageLimit is a UserSortType enum value
	UserSortTypeStorageLimit = "STORAGE_LIMIT"

	// UserSortTypeUserStatus is a UserSortType enum value
	UserSortTypeUserStatus = "USER_STATUS"

	// UserSortTypeStorageUsed is a UserSortType enum value
	UserSortTypeStorageUsed = "STORAGE_USED"
)
View Source
const (
	// UserStatusTypeActive is a UserStatusType enum value
	UserStatusTypeActive = "ACTIVE"

	// UserStatusTypeInactive is a UserStatusType enum value
	UserStatusTypeInactive = "INACTIVE"

	// UserStatusTypePending is a UserStatusType enum value
	UserStatusTypePending = "PENDING"
)
View Source
const (
	// UserTypeUser is a UserType enum value
	UserTypeUser = "USER"

	// UserTypeAdmin is a UserType enum value
	UserTypeAdmin = "ADMIN"
)
View Source
const (

	// ErrCodeConcurrentModificationException for service response error code
	// "ConcurrentModificationException".
	//
	// The resource hierarchy is changing.
	ErrCodeConcurrentModificationException = "ConcurrentModificationException"

	// ErrCodeDeactivatingLastSystemUserException for service response error code
	// "DeactivatingLastSystemUserException".
	//
	// The last user in the organization is being deactivated.
	ErrCodeDeactivatingLastSystemUserException = "DeactivatingLastSystemUserException"

	// ErrCodeEntityAlreadyExistsException for service response error code
	// "EntityAlreadyExistsException".
	//
	// The resource already exists.
	ErrCodeEntityAlreadyExistsException = "EntityAlreadyExistsException"

	// ErrCodeEntityNotExistsException for service response error code
	// "EntityNotExistsException".
	//
	// The resource does not exist.
	ErrCodeEntityNotExistsException = "EntityNotExistsException"

	// ErrCodeFailedDependencyException for service response error code
	// "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.
	ErrCodeFailedDependencyException = "FailedDependencyException"

	// ErrCodeIllegalUserStateException for service response error code
	// "IllegalUserStateException".
	//
	// The user is undergoing transfer of ownership.
	ErrCodeIllegalUserStateException = "IllegalUserStateException"

	// ErrCodeInvalidArgumentException for service response error code
	// "InvalidArgumentException".
	//
	// The pagination marker and/or limit fields are not valid.
	ErrCodeInvalidArgumentException = "InvalidArgumentException"

	// ErrCodeInvalidOperationException for service response error code
	// "InvalidOperationException".
	//
	// The operation is invalid.
	ErrCodeInvalidOperationException = "InvalidOperationException"

	// ErrCodeLimitExceededException for service response error code
	// "LimitExceededException".
	//
	// You've exceeded the maximum of 100,000 folders under the parent folder.
	ErrCodeLimitExceededException = "LimitExceededException"

	// ErrCodeProhibitedStateException for service response error code
	// "ProhibitedStateException".
	//
	// The specified document version is not in the INITIALIZED state.
	ErrCodeProhibitedStateException = "ProhibitedStateException"

	// ErrCodeServiceUnavailableException for service response error code
	// "ServiceUnavailableException".
	//
	// One or more of the dependencies is unavailable.
	ErrCodeServiceUnavailableException = "ServiceUnavailableException"

	// ErrCodeStorageLimitExceededException for service response error code
	// "StorageLimitExceededException".
	//
	// The storage limit has been exceeded.
	ErrCodeStorageLimitExceededException = "StorageLimitExceededException"

	// ErrCodeStorageLimitWillExceedException for service response error code
	// "StorageLimitWillExceedException".
	//
	// The storage limit will be exceeded.
	ErrCodeStorageLimitWillExceedException = "StorageLimitWillExceedException"

	// ErrCodeTooManySubscriptionsException for service response error code
	// "TooManySubscriptionsException".
	//
	// You've reached the limit on the number of subscriptions for the WorkDocs
	// instance.
	ErrCodeTooManySubscriptionsException = "TooManySubscriptionsException"

	// ErrCodeUnauthorizedOperationException for service response error code
	// "UnauthorizedOperationException".
	//
	// The operation is not permitted.
	ErrCodeUnauthorizedOperationException = "UnauthorizedOperationException"

	// ErrCodeUnauthorizedResourceAccessException for service response error code
	// "UnauthorizedResourceAccessException".
	//
	// The caller does not have access to perform the action on the resource.
	ErrCodeUnauthorizedResourceAccessException = "UnauthorizedResourceAccessException"
)
View Source
const (
	ServiceName = "workdocs"  // Service endpoint prefix API calls made to.
	EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)

Service information constants

View Source
const (
	// DocumentVersionStatusActive is a DocumentVersionStatus enum value
	DocumentVersionStatusActive = "ACTIVE"
)
View Source
const (
	// SubscriptionProtocolTypeHttps is a SubscriptionProtocolType enum value
	SubscriptionProtocolTypeHttps = "HTTPS"
)
View Source
const (
	// SubscriptionTypeAll is a SubscriptionType enum value
	SubscriptionTypeAll = "ALL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AbortDocumentVersionUploadInput

type AbortDocumentVersionUploadInput struct {

	// The ID of the document.
	//
	// DocumentId is a required field
	DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"`

	// The ID of the version.
	//
	// VersionId is a required field
	VersionId *string `location:"uri" locationName:"VersionId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AbortDocumentVersionUploadRequest

func (AbortDocumentVersionUploadInput) GoString

GoString returns the string representation

func (*AbortDocumentVersionUploadInput) SetDocumentId

SetDocumentId sets the DocumentId field's value.

func (*AbortDocumentVersionUploadInput) SetVersionId

SetVersionId sets the VersionId field's value.

func (AbortDocumentVersionUploadInput) String

String returns the string representation

func (*AbortDocumentVersionUploadInput) Validate

func (s *AbortDocumentVersionUploadInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AbortDocumentVersionUploadOutput

type AbortDocumentVersionUploadOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AbortDocumentVersionUploadOutput

func (AbortDocumentVersionUploadOutput) GoString

GoString returns the string representation

func (AbortDocumentVersionUploadOutput) String

String returns the string representation

type ActivateUserInput

type ActivateUserInput struct {

	// The ID of the user.
	//
	// UserId is a required field
	UserId *string `location:"uri" locationName:"UserId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ActivateUserRequest

func (ActivateUserInput) GoString

func (s ActivateUserInput) GoString() string

GoString returns the string representation

func (*ActivateUserInput) SetUserId

func (s *ActivateUserInput) SetUserId(v string) *ActivateUserInput

SetUserId sets the UserId field's value.

func (ActivateUserInput) String

func (s ActivateUserInput) String() string

String returns the string representation

func (*ActivateUserInput) Validate

func (s *ActivateUserInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ActivateUserOutput

type ActivateUserOutput struct {

	// The user information.
	User *User `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ActivateUserResponse

func (ActivateUserOutput) GoString

func (s ActivateUserOutput) GoString() string

GoString returns the string representation

func (*ActivateUserOutput) SetUser

func (s *ActivateUserOutput) SetUser(v *User) *ActivateUserOutput

SetUser sets the User field's value.

func (ActivateUserOutput) String

func (s ActivateUserOutput) String() string

String returns the string representation

type AddResourcePermissionsInput

type AddResourcePermissionsInput struct {

	// The users, groups, or organization being granted permission.
	//
	// Principals is a required field
	Principals []*SharePrincipal `type:"list" required:"true"`

	// The ID of the resource.
	//
	// ResourceId is a required field
	ResourceId *string `location:"uri" locationName:"ResourceId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AddResourcePermissionsRequest

func (AddResourcePermissionsInput) GoString

func (s AddResourcePermissionsInput) GoString() string

GoString returns the string representation

func (*AddResourcePermissionsInput) SetPrincipals

SetPrincipals sets the Principals field's value.

func (*AddResourcePermissionsInput) SetResourceId

SetResourceId sets the ResourceId field's value.

func (AddResourcePermissionsInput) String

String returns the string representation

func (*AddResourcePermissionsInput) Validate

func (s *AddResourcePermissionsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AddResourcePermissionsOutput

type AddResourcePermissionsOutput struct {

	// The share results.
	ShareResults []*ShareResult `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AddResourcePermissionsResponse

func (AddResourcePermissionsOutput) GoString

func (s AddResourcePermissionsOutput) GoString() string

GoString returns the string representation

func (*AddResourcePermissionsOutput) SetShareResults

SetShareResults sets the ShareResults field's value.

func (AddResourcePermissionsOutput) String

String returns the string representation

type CreateFolderInput

type CreateFolderInput struct {

	// The name of the new folder.
	Name *string `min:"1" type:"string"`

	// The ID of the parent folder.
	//
	// ParentFolderId is a required field
	ParentFolderId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateFolderRequest

func (CreateFolderInput) GoString

func (s CreateFolderInput) GoString() string

GoString returns the string representation

func (*CreateFolderInput) SetName

SetName sets the Name field's value.

func (*CreateFolderInput) SetParentFolderId

func (s *CreateFolderInput) SetParentFolderId(v string) *CreateFolderInput

SetParentFolderId sets the ParentFolderId field's value.

func (CreateFolderInput) String

func (s CreateFolderInput) String() string

String returns the string representation

func (*CreateFolderInput) Validate

func (s *CreateFolderInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateFolderOutput

type CreateFolderOutput struct {

	// The metadata of the folder.
	Metadata *FolderMetadata `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateFolderResponse

func (CreateFolderOutput) GoString

func (s CreateFolderOutput) GoString() string

GoString returns the string representation

func (*CreateFolderOutput) SetMetadata

SetMetadata sets the Metadata field's value.

func (CreateFolderOutput) String

func (s CreateFolderOutput) String() string

String returns the string representation

type CreateNotificationSubscriptionInput

type CreateNotificationSubscriptionInput struct {

	// The endpoint to receive the notifications. If the protocol is HTTPS, the
	// endpoint is a URL that begins with "https://".
	//
	// Endpoint is a required field
	Endpoint *string `min:"1" type:"string" required:"true"`

	// The ID of the organization.
	//
	// OrganizationId is a required field
	OrganizationId *string `location:"uri" locationName:"OrganizationId" min:"1" type:"string" required:"true"`

	// The protocol to use. The supported value is https, which delivers JSON-encoded
	// messasges using HTTPS POST.
	//
	// Protocol is a required field
	Protocol *string `type:"string" required:"true" enum:"SubscriptionProtocolType"`

	// The notification type.
	//
	// SubscriptionType is a required field
	SubscriptionType *string `type:"string" required:"true" enum:"SubscriptionType"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateNotificationSubscriptionRequest

func (CreateNotificationSubscriptionInput) GoString

GoString returns the string representation

func (*CreateNotificationSubscriptionInput) SetEndpoint

SetEndpoint sets the Endpoint field's value.

func (*CreateNotificationSubscriptionInput) SetOrganizationId

SetOrganizationId sets the OrganizationId field's value.

func (*CreateNotificationSubscriptionInput) SetProtocol

SetProtocol sets the Protocol field's value.

func (*CreateNotificationSubscriptionInput) SetSubscriptionType

SetSubscriptionType sets the SubscriptionType field's value.

func (CreateNotificationSubscriptionInput) String

String returns the string representation

func (*CreateNotificationSubscriptionInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type CreateNotificationSubscriptionOutput

type CreateNotificationSubscriptionOutput struct {

	// The subscription.
	Subscription *Subscription `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateNotificationSubscriptionResponse

func (CreateNotificationSubscriptionOutput) GoString

GoString returns the string representation

func (*CreateNotificationSubscriptionOutput) SetSubscription

SetSubscription sets the Subscription field's value.

func (CreateNotificationSubscriptionOutput) String

String returns the string representation

type CreateUserInput

type CreateUserInput struct {

	// The given name of the user.
	//
	// GivenName is a required field
	GivenName *string `min:"1" type:"string" required:"true"`

	// The ID of the organization.
	OrganizationId *string `min:"1" type:"string"`

	// The password of the user.
	//
	// Password is a required field
	Password *string `min:"4" type:"string" required:"true"`

	// The amount of storage for the user.
	StorageRule *StorageRuleType `type:"structure"`

	// The surname of the user.
	//
	// Surname is a required field
	Surname *string `min:"1" type:"string" required:"true"`

	// The time zone ID of the user.
	TimeZoneId *string `min:"1" type:"string"`

	// The login name of the user.
	//
	// Username is a required field
	Username *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateUserRequest

func (CreateUserInput) GoString

func (s CreateUserInput) GoString() string

GoString returns the string representation

func (*CreateUserInput) SetGivenName

func (s *CreateUserInput) SetGivenName(v string) *CreateUserInput

SetGivenName sets the GivenName field's value.

func (*CreateUserInput) SetOrganizationId

func (s *CreateUserInput) SetOrganizationId(v string) *CreateUserInput

SetOrganizationId sets the OrganizationId field's value.

func (*CreateUserInput) SetPassword

func (s *CreateUserInput) SetPassword(v string) *CreateUserInput

SetPassword sets the Password field's value.

func (*CreateUserInput) SetStorageRule

func (s *CreateUserInput) SetStorageRule(v *StorageRuleType) *CreateUserInput

SetStorageRule sets the StorageRule field's value.

func (*CreateUserInput) SetSurname

func (s *CreateUserInput) SetSurname(v string) *CreateUserInput

SetSurname sets the Surname field's value.

func (*CreateUserInput) SetTimeZoneId

func (s *CreateUserInput) SetTimeZoneId(v string) *CreateUserInput

SetTimeZoneId sets the TimeZoneId field's value.

func (*CreateUserInput) SetUsername

func (s *CreateUserInput) SetUsername(v string) *CreateUserInput

SetUsername sets the Username field's value.

func (CreateUserInput) String

func (s CreateUserInput) String() string

String returns the string representation

func (*CreateUserInput) Validate

func (s *CreateUserInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateUserOutput

type CreateUserOutput struct {

	// The user information.
	User *User `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateUserResponse

func (CreateUserOutput) GoString

func (s CreateUserOutput) GoString() string

GoString returns the string representation

func (*CreateUserOutput) SetUser

func (s *CreateUserOutput) SetUser(v *User) *CreateUserOutput

SetUser sets the User field's value.

func (CreateUserOutput) String

func (s CreateUserOutput) String() string

String returns the string representation

type DeactivateUserInput

type DeactivateUserInput struct {

	// The ID of the user.
	//
	// UserId is a required field
	UserId *string `location:"uri" locationName:"UserId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeactivateUserRequest

func (DeactivateUserInput) GoString

func (s DeactivateUserInput) GoString() string

GoString returns the string representation

func (*DeactivateUserInput) SetUserId

SetUserId sets the UserId field's value.

func (DeactivateUserInput) String

func (s DeactivateUserInput) String() string

String returns the string representation

func (*DeactivateUserInput) Validate

func (s *DeactivateUserInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeactivateUserOutput

type DeactivateUserOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeactivateUserOutput

func (DeactivateUserOutput) GoString

func (s DeactivateUserOutput) GoString() string

GoString returns the string representation

func (DeactivateUserOutput) String

func (s DeactivateUserOutput) String() string

String returns the string representation

type DeleteDocumentInput

type DeleteDocumentInput struct {

	// The ID of the document.
	//
	// DocumentId is a required field
	DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteDocumentRequest

func (DeleteDocumentInput) GoString

func (s DeleteDocumentInput) GoString() string

GoString returns the string representation

func (*DeleteDocumentInput) SetDocumentId

func (s *DeleteDocumentInput) SetDocumentId(v string) *DeleteDocumentInput

SetDocumentId sets the DocumentId field's value.

func (DeleteDocumentInput) String

func (s DeleteDocumentInput) String() string

String returns the string representation

func (*DeleteDocumentInput) Validate

func (s *DeleteDocumentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteDocumentOutput

type DeleteDocumentOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteDocumentOutput

func (DeleteDocumentOutput) GoString

func (s DeleteDocumentOutput) GoString() string

GoString returns the string representation

func (DeleteDocumentOutput) String

func (s DeleteDocumentOutput) String() string

String returns the string representation

type DeleteFolderContentsInput

type DeleteFolderContentsInput struct {

	// The ID of the folder.
	//
	// FolderId is a required field
	FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderContentsRequest

func (DeleteFolderContentsInput) GoString

func (s DeleteFolderContentsInput) GoString() string

GoString returns the string representation

func (*DeleteFolderContentsInput) SetFolderId

SetFolderId sets the FolderId field's value.

func (DeleteFolderContentsInput) String

func (s DeleteFolderContentsInput) String() string

String returns the string representation

func (*DeleteFolderContentsInput) Validate

func (s *DeleteFolderContentsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteFolderContentsOutput

type DeleteFolderContentsOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderContentsOutput

func (DeleteFolderContentsOutput) GoString

func (s DeleteFolderContentsOutput) GoString() string

GoString returns the string representation

func (DeleteFolderContentsOutput) String

String returns the string representation

type DeleteFolderInput

type DeleteFolderInput struct {

	// The ID of the folder.
	//
	// FolderId is a required field
	FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderRequest

func (DeleteFolderInput) GoString

func (s DeleteFolderInput) GoString() string

GoString returns the string representation

func (*DeleteFolderInput) SetFolderId

func (s *DeleteFolderInput) SetFolderId(v string) *DeleteFolderInput

SetFolderId sets the FolderId field's value.

func (DeleteFolderInput) String

func (s DeleteFolderInput) String() string

String returns the string representation

func (*DeleteFolderInput) Validate

func (s *DeleteFolderInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteFolderOutput

type DeleteFolderOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderOutput

func (DeleteFolderOutput) GoString

func (s DeleteFolderOutput) GoString() string

GoString returns the string representation

func (DeleteFolderOutput) String

func (s DeleteFolderOutput) String() string

String returns the string representation

type DeleteNotificationSubscriptionInput

type DeleteNotificationSubscriptionInput struct {

	// The ID of the organization.
	//
	// OrganizationId is a required field
	OrganizationId *string `location:"uri" locationName:"OrganizationId" min:"1" type:"string" required:"true"`

	// The ID of the subscription.
	//
	// SubscriptionId is a required field
	SubscriptionId *string `location:"uri" locationName:"SubscriptionId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteNotificationSubscriptionRequest

func (DeleteNotificationSubscriptionInput) GoString

GoString returns the string representation

func (*DeleteNotificationSubscriptionInput) SetOrganizationId

SetOrganizationId sets the OrganizationId field's value.

func (*DeleteNotificationSubscriptionInput) SetSubscriptionId

SetSubscriptionId sets the SubscriptionId field's value.

func (DeleteNotificationSubscriptionInput) String

String returns the string representation

func (*DeleteNotificationSubscriptionInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type DeleteNotificationSubscriptionOutput

type DeleteNotificationSubscriptionOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteNotificationSubscriptionOutput

func (DeleteNotificationSubscriptionOutput) GoString

GoString returns the string representation

func (DeleteNotificationSubscriptionOutput) String

String returns the string representation

type DeleteUserInput

type DeleteUserInput struct {

	// The ID of the user.
	//
	// UserId is a required field
	UserId *string `location:"uri" locationName:"UserId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteUserRequest

func (DeleteUserInput) GoString

func (s DeleteUserInput) GoString() string

GoString returns the string representation

func (*DeleteUserInput) SetUserId

func (s *DeleteUserInput) SetUserId(v string) *DeleteUserInput

SetUserId sets the UserId field's value.

func (DeleteUserInput) String

func (s DeleteUserInput) String() string

String returns the string representation

func (*DeleteUserInput) Validate

func (s *DeleteUserInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteUserOutput

type DeleteUserOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteUserOutput

func (DeleteUserOutput) GoString

func (s DeleteUserOutput) GoString() string

GoString returns the string representation

func (DeleteUserOutput) String

func (s DeleteUserOutput) String() string

String returns the string representation

type DescribeDocumentVersionsInput

type DescribeDocumentVersionsInput struct {

	// The ID of the document.
	//
	// DocumentId is a required field
	DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"`

	// Specify "SOURCE" to include initialized versions and a URL for the source
	// document.
	Fields *string `location:"querystring" locationName:"fields" min:"1" type:"string"`

	// A comma-separated list of values. Specify "INITIALIZED" to include incomplete
	// versions.
	Include *string `location:"querystring" locationName:"include" min:"1" type:"string"`

	// The maximum number of versions to return with this call.
	Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"`

	// The marker for the next set of results. (You received this marker from a
	// previous call.)
	Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeDocumentVersionsRequest

func (DescribeDocumentVersionsInput) GoString

GoString returns the string representation

func (*DescribeDocumentVersionsInput) SetDocumentId

SetDocumentId sets the DocumentId field's value.

func (*DescribeDocumentVersionsInput) SetFields

SetFields sets the Fields field's value.

func (*DescribeDocumentVersionsInput) SetInclude

SetInclude sets the Include field's value.

func (*DescribeDocumentVersionsInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeDocumentVersionsInput) SetMarker

SetMarker sets the Marker field's value.

func (DescribeDocumentVersionsInput) String

String returns the string representation

func (*DescribeDocumentVersionsInput) Validate

func (s *DescribeDocumentVersionsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeDocumentVersionsOutput

type DescribeDocumentVersionsOutput struct {

	// The document versions.
	DocumentVersions []*DocumentVersionMetadata `type:"list"`

	// The marker to use when requesting the next set of results. If there are no
	// additional results, the string is empty.
	Marker *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeDocumentVersionsResponse

func (DescribeDocumentVersionsOutput) GoString

GoString returns the string representation

func (*DescribeDocumentVersionsOutput) SetDocumentVersions

SetDocumentVersions sets the DocumentVersions field's value.

func (*DescribeDocumentVersionsOutput) SetMarker

SetMarker sets the Marker field's value.

func (DescribeDocumentVersionsOutput) String

String returns the string representation

type DescribeFolderContentsInput

type DescribeFolderContentsInput struct {

	// The ID of the folder.
	//
	// FolderId is a required field
	FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"`

	// The contents to include. Specify "INITIALIZED" to include initialized documents.
	Include *string `location:"querystring" locationName:"include" min:"1" type:"string"`

	// The maximum number of items to return with this call.
	Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"`

	// The marker for the next set of results. (You received this marker from a
	// previous call.)
	Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"`

	// The order for the contents of the folder.
	Order *string `location:"querystring" locationName:"order" type:"string" enum:"OrderType"`

	// The sorting criteria.
	Sort *string `location:"querystring" locationName:"sort" type:"string" enum:"ResourceSortType"`

	// The type of items.
	Type *string `location:"querystring" locationName:"type" type:"string" enum:"FolderContentType"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeFolderContentsRequest

func (DescribeFolderContentsInput) GoString

func (s DescribeFolderContentsInput) GoString() string

GoString returns the string representation

func (*DescribeFolderContentsInput) SetFolderId

SetFolderId sets the FolderId field's value.

func (*DescribeFolderContentsInput) SetInclude

SetInclude sets the Include field's value.

func (*DescribeFolderContentsInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeFolderContentsInput) SetMarker

SetMarker sets the Marker field's value.

func (*DescribeFolderContentsInput) SetOrder

SetOrder sets the Order field's value.

func (*DescribeFolderContentsInput) SetSort

SetSort sets the Sort field's value.

func (*DescribeFolderContentsInput) SetType

SetType sets the Type field's value.

func (DescribeFolderContentsInput) String

String returns the string representation

func (*DescribeFolderContentsInput) Validate

func (s *DescribeFolderContentsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeFolderContentsOutput

type DescribeFolderContentsOutput struct {

	// The documents in the specified folder.
	Documents []*DocumentMetadata `type:"list"`

	// The sub-folders in the specified folder.
	Folders []*FolderMetadata `type:"list"`

	// The marker to use when requesting the next set of results. If there are no
	// additional results, the string is empty.
	Marker *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeFolderContentsResponse

func (DescribeFolderContentsOutput) GoString

func (s DescribeFolderContentsOutput) GoString() string

GoString returns the string representation

func (*DescribeFolderContentsOutput) SetDocuments

SetDocuments sets the Documents field's value.

func (*DescribeFolderContentsOutput) SetFolders

SetFolders sets the Folders field's value.

func (*DescribeFolderContentsOutput) SetMarker

SetMarker sets the Marker field's value.

func (DescribeFolderContentsOutput) String

String returns the string representation

type DescribeNotificationSubscriptionsInput

type DescribeNotificationSubscriptionsInput struct {

	// The maximum number of items to return with this call.
	Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"`

	// The marker for the next set of results. (You received this marker from a
	// previous call.)
	Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"`

	// The ID of the organization.
	//
	// OrganizationId is a required field
	OrganizationId *string `location:"uri" locationName:"OrganizationId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeNotificationSubscriptionsRequest

func (DescribeNotificationSubscriptionsInput) GoString

GoString returns the string representation

func (*DescribeNotificationSubscriptionsInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeNotificationSubscriptionsInput) SetMarker

SetMarker sets the Marker field's value.

func (*DescribeNotificationSubscriptionsInput) SetOrganizationId

SetOrganizationId sets the OrganizationId field's value.

func (DescribeNotificationSubscriptionsInput) String

String returns the string representation

func (*DescribeNotificationSubscriptionsInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type DescribeNotificationSubscriptionsOutput

type DescribeNotificationSubscriptionsOutput struct {

	// The marker to use when requesting the next set of results. If there are no
	// additional results, the string is empty.
	Marker *string `min:"1" type:"string"`

	// The subscriptions.
	Subscriptions []*Subscription `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeNotificationSubscriptionsResponse

func (DescribeNotificationSubscriptionsOutput) GoString

GoString returns the string representation

func (*DescribeNotificationSubscriptionsOutput) SetMarker

SetMarker sets the Marker field's value.

func (*DescribeNotificationSubscriptionsOutput) SetSubscriptions

SetSubscriptions sets the Subscriptions field's value.

func (DescribeNotificationSubscriptionsOutput) String

String returns the string representation

type DescribeResourcePermissionsInput

type DescribeResourcePermissionsInput struct {

	// The maximum number of items to return with this call.
	Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"`

	// The marker for the next set of results. (You received this marker from a
	// previous call)
	Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"`

	// The ID of the resource.
	//
	// ResourceId is a required field
	ResourceId *string `location:"uri" locationName:"ResourceId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeResourcePermissionsRequest

func (DescribeResourcePermissionsInput) GoString

GoString returns the string representation

func (*DescribeResourcePermissionsInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeResourcePermissionsInput) SetMarker

SetMarker sets the Marker field's value.

func (*DescribeResourcePermissionsInput) SetResourceId

SetResourceId sets the ResourceId field's value.

func (DescribeResourcePermissionsInput) String

String returns the string representation

func (*DescribeResourcePermissionsInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type DescribeResourcePermissionsOutput

type DescribeResourcePermissionsOutput struct {

	// The marker to use when requesting the next set of results. If there are no
	// additional results, the string is empty.
	Marker *string `min:"1" type:"string"`

	// The principals.
	Principals []*Principal `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeResourcePermissionsResponse

func (DescribeResourcePermissionsOutput) GoString

GoString returns the string representation

func (*DescribeResourcePermissionsOutput) SetMarker

SetMarker sets the Marker field's value.

func (*DescribeResourcePermissionsOutput) SetPrincipals

SetPrincipals sets the Principals field's value.

func (DescribeResourcePermissionsOutput) String

String returns the string representation

type DescribeUsersInput

type DescribeUsersInput struct {

	// A comma-separated list of values. Specify "STORAGE_METADATA" to include the
	// user storage quota and utilization information.
	Fields *string `location:"querystring" locationName:"fields" min:"1" type:"string"`

	// The state of the users. Specify "ALL" to include inactive users.
	Include *string `location:"querystring" locationName:"include" type:"string" enum:"UserFilterType"`

	// The maximum number of items to return.
	Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"`

	// The marker for the next set of results. (You received this marker from a
	// previous call.)
	Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"`

	// The order for the results.
	Order *string `location:"querystring" locationName:"order" type:"string" enum:"OrderType"`

	// The ID of the organization.
	OrganizationId *string `location:"querystring" locationName:"organizationId" min:"1" type:"string"`

	// A query to filter users by user name.
	Query *string `location:"querystring" locationName:"query" min:"1" type:"string"`

	// The sorting criteria.
	Sort *string `location:"querystring" locationName:"sort" type:"string" enum:"UserSortType"`

	// The IDs of the users.
	UserIds *string `location:"querystring" locationName:"userIds" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeUsersRequest

func (DescribeUsersInput) GoString

func (s DescribeUsersInput) GoString() string

GoString returns the string representation

func (*DescribeUsersInput) SetFields

func (s *DescribeUsersInput) SetFields(v string) *DescribeUsersInput

SetFields sets the Fields field's value.

func (*DescribeUsersInput) SetInclude

func (s *DescribeUsersInput) SetInclude(v string) *DescribeUsersInput

SetInclude sets the Include field's value.

func (*DescribeUsersInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeUsersInput) SetMarker

func (s *DescribeUsersInput) SetMarker(v string) *DescribeUsersInput

SetMarker sets the Marker field's value.

func (*DescribeUsersInput) SetOrder

SetOrder sets the Order field's value.

func (*DescribeUsersInput) SetOrganizationId

func (s *DescribeUsersInput) SetOrganizationId(v string) *DescribeUsersInput

SetOrganizationId sets the OrganizationId field's value.

func (*DescribeUsersInput) SetQuery

SetQuery sets the Query field's value.

func (*DescribeUsersInput) SetSort

SetSort sets the Sort field's value.

func (*DescribeUsersInput) SetUserIds

func (s *DescribeUsersInput) SetUserIds(v string) *DescribeUsersInput

SetUserIds sets the UserIds field's value.

func (DescribeUsersInput) String

func (s DescribeUsersInput) String() string

String returns the string representation

func (*DescribeUsersInput) Validate

func (s *DescribeUsersInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeUsersOutput

type DescribeUsersOutput struct {

	// The marker to use when requesting the next set of results. If there are no
	// additional results, the string is empty.
	Marker *string `min:"1" type:"string"`

	// The total number of users included in the results.
	TotalNumberOfUsers *int64 `type:"long"`

	// The users.
	Users []*User `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeUsersResponse

func (DescribeUsersOutput) GoString

func (s DescribeUsersOutput) GoString() string

GoString returns the string representation

func (*DescribeUsersOutput) SetMarker

SetMarker sets the Marker field's value.

func (*DescribeUsersOutput) SetTotalNumberOfUsers

func (s *DescribeUsersOutput) SetTotalNumberOfUsers(v int64) *DescribeUsersOutput

SetTotalNumberOfUsers sets the TotalNumberOfUsers field's value.

func (*DescribeUsersOutput) SetUsers

func (s *DescribeUsersOutput) SetUsers(v []*User) *DescribeUsersOutput

SetUsers sets the Users field's value.

func (DescribeUsersOutput) String

func (s DescribeUsersOutput) String() string

String returns the string representation

type DocumentMetadata

type DocumentMetadata struct {

	// The time when the document was created.
	CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The ID of the creator.
	CreatorId *string `min:"1" type:"string"`

	// The ID of the document.
	Id *string `min:"1" type:"string"`

	// The latest version of the document.
	LatestVersionMetadata *DocumentVersionMetadata `type:"structure"`

	// The time when the document was updated.
	ModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The ID of the parent folder.
	ParentFolderId *string `min:"1" type:"string"`

	// The resource state.
	ResourceState *string `type:"string" enum:"ResourceStateType"`
	// contains filtered or unexported fields
}

Describes the document. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DocumentMetadata

func (DocumentMetadata) GoString

func (s DocumentMetadata) GoString() string

GoString returns the string representation

func (*DocumentMetadata) SetCreatedTimestamp

func (s *DocumentMetadata) SetCreatedTimestamp(v time.Time) *DocumentMetadata

SetCreatedTimestamp sets the CreatedTimestamp field's value.

func (*DocumentMetadata) SetCreatorId

func (s *DocumentMetadata) SetCreatorId(v string) *DocumentMetadata

SetCreatorId sets the CreatorId field's value.

func (*DocumentMetadata) SetId

SetId sets the Id field's value.

func (*DocumentMetadata) SetLatestVersionMetadata

func (s *DocumentMetadata) SetLatestVersionMetadata(v *DocumentVersionMetadata) *DocumentMetadata

SetLatestVersionMetadata sets the LatestVersionMetadata field's value.

func (*DocumentMetadata) SetModifiedTimestamp

func (s *DocumentMetadata) SetModifiedTimestamp(v time.Time) *DocumentMetadata

SetModifiedTimestamp sets the ModifiedTimestamp field's value.

func (*DocumentMetadata) SetParentFolderId

func (s *DocumentMetadata) SetParentFolderId(v string) *DocumentMetadata

SetParentFolderId sets the ParentFolderId field's value.

func (*DocumentMetadata) SetResourceState

func (s *DocumentMetadata) SetResourceState(v string) *DocumentMetadata

SetResourceState sets the ResourceState field's value.

func (DocumentMetadata) String

func (s DocumentMetadata) String() string

String returns the string representation

type DocumentVersionMetadata

type DocumentVersionMetadata struct {

	// The time stamp when the content of the document was originally created.
	ContentCreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The time stamp when the content of the document was modified.
	ContentModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The content type of the document.
	ContentType *string `min:"1" type:"string"`

	// The time stamp when the document was first uploaded.
	CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The ID of the creator.
	CreatorId *string `min:"1" type:"string"`

	// The ID of the version.
	Id *string `min:"1" type:"string"`

	// The time stamp when the document was last uploaded.
	ModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The name of the version.
	Name *string `min:"1" type:"string"`

	// The signature of the document.
	Signature *string `type:"string"`

	// The size of the document, in bytes.
	Size *int64 `type:"long"`

	// The source of the document.
	Source map[string]*string `type:"map"`

	// The status of the document.
	Status *string `type:"string" enum:"DocumentStatusType"`

	// The thumbnail of the document.
	Thumbnail map[string]*string `type:"map"`
	// contains filtered or unexported fields
}

Describes a version of a document. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DocumentVersionMetadata

func (DocumentVersionMetadata) GoString

func (s DocumentVersionMetadata) GoString() string

GoString returns the string representation

func (*DocumentVersionMetadata) SetContentCreatedTimestamp

func (s *DocumentVersionMetadata) SetContentCreatedTimestamp(v time.Time) *DocumentVersionMetadata

SetContentCreatedTimestamp sets the ContentCreatedTimestamp field's value.

func (*DocumentVersionMetadata) SetContentModifiedTimestamp

func (s *DocumentVersionMetadata) SetContentModifiedTimestamp(v time.Time) *DocumentVersionMetadata

SetContentModifiedTimestamp sets the ContentModifiedTimestamp field's value.

func (*DocumentVersionMetadata) SetContentType

SetContentType sets the ContentType field's value.

func (*DocumentVersionMetadata) SetCreatedTimestamp

func (s *DocumentVersionMetadata) SetCreatedTimestamp(v time.Time) *DocumentVersionMetadata

SetCreatedTimestamp sets the CreatedTimestamp field's value.

func (*DocumentVersionMetadata) SetCreatorId

SetCreatorId sets the CreatorId field's value.

func (*DocumentVersionMetadata) SetId

SetId sets the Id field's value.

func (*DocumentVersionMetadata) SetModifiedTimestamp

func (s *DocumentVersionMetadata) SetModifiedTimestamp(v time.Time) *DocumentVersionMetadata

SetModifiedTimestamp sets the ModifiedTimestamp field's value.

func (*DocumentVersionMetadata) SetName

SetName sets the Name field's value.

func (*DocumentVersionMetadata) SetSignature

SetSignature sets the Signature field's value.

func (*DocumentVersionMetadata) SetSize

SetSize sets the Size field's value.

func (*DocumentVersionMetadata) SetSource

SetSource sets the Source field's value.

func (*DocumentVersionMetadata) SetStatus

SetStatus sets the Status field's value.

func (*DocumentVersionMetadata) SetThumbnail

SetThumbnail sets the Thumbnail field's value.

func (DocumentVersionMetadata) String

func (s DocumentVersionMetadata) String() string

String returns the string representation

type FolderMetadata

type FolderMetadata struct {

	// The time when the folder was created.
	CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The ID of the creator.
	CreatorId *string `min:"1" type:"string"`

	// The ID of the folder.
	Id *string `min:"1" type:"string"`

	// The time when the folder was updated.
	ModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The name of the folder.
	Name *string `min:"1" type:"string"`

	// The ID of the parent folder.
	ParentFolderId *string `min:"1" type:"string"`

	// The resource state of the folder.
	ResourceState *string `type:"string" enum:"ResourceStateType"`

	// The unique identifier created from the subfolders and documents of the folder.
	Signature *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a folder. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/FolderMetadata

func (FolderMetadata) GoString

func (s FolderMetadata) GoString() string

GoString returns the string representation

func (*FolderMetadata) SetCreatedTimestamp

func (s *FolderMetadata) SetCreatedTimestamp(v time.Time) *FolderMetadata

SetCreatedTimestamp sets the CreatedTimestamp field's value.

func (*FolderMetadata) SetCreatorId

func (s *FolderMetadata) SetCreatorId(v string) *FolderMetadata

SetCreatorId sets the CreatorId field's value.

func (*FolderMetadata) SetId

func (s *FolderMetadata) SetId(v string) *FolderMetadata

SetId sets the Id field's value.

func (*FolderMetadata) SetModifiedTimestamp

func (s *FolderMetadata) SetModifiedTimestamp(v time.Time) *FolderMetadata

SetModifiedTimestamp sets the ModifiedTimestamp field's value.

func (*FolderMetadata) SetName

func (s *FolderMetadata) SetName(v string) *FolderMetadata

SetName sets the Name field's value.

func (*FolderMetadata) SetParentFolderId

func (s *FolderMetadata) SetParentFolderId(v string) *FolderMetadata

SetParentFolderId sets the ParentFolderId field's value.

func (*FolderMetadata) SetResourceState

func (s *FolderMetadata) SetResourceState(v string) *FolderMetadata

SetResourceState sets the ResourceState field's value.

func (*FolderMetadata) SetSignature

func (s *FolderMetadata) SetSignature(v string) *FolderMetadata

SetSignature sets the Signature field's value.

func (FolderMetadata) String

func (s FolderMetadata) String() string

String returns the string representation

type GetDocumentInput

type GetDocumentInput struct {

	// The ID of the document object.
	//
	// DocumentId is a required field
	DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentRequest

func (GetDocumentInput) GoString

func (s GetDocumentInput) GoString() string

GoString returns the string representation

func (*GetDocumentInput) SetDocumentId

func (s *GetDocumentInput) SetDocumentId(v string) *GetDocumentInput

SetDocumentId sets the DocumentId field's value.

func (GetDocumentInput) String

func (s GetDocumentInput) String() string

String returns the string representation

func (*GetDocumentInput) Validate

func (s *GetDocumentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetDocumentOutput

type GetDocumentOutput struct {

	// The document object.
	Metadata *DocumentMetadata `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentResponse

func (GetDocumentOutput) GoString

func (s GetDocumentOutput) GoString() string

GoString returns the string representation

func (*GetDocumentOutput) SetMetadata

SetMetadata sets the Metadata field's value.

func (GetDocumentOutput) String

func (s GetDocumentOutput) String() string

String returns the string representation

type GetDocumentPathInput

type GetDocumentPathInput struct {

	// The ID of the document.
	//
	// DocumentId is a required field
	DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"`

	// A comma-separated list of values. Specify "NAME" to include the names of
	// the parent folders.
	Fields *string `location:"querystring" locationName:"fields" min:"1" type:"string"`

	// The maximum number of levels in the hierarchy to return.
	Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"`

	// This value is not supported.
	Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentPathRequest

func (GetDocumentPathInput) GoString

func (s GetDocumentPathInput) GoString() string

GoString returns the string representation

func (*GetDocumentPathInput) SetDocumentId

func (s *GetDocumentPathInput) SetDocumentId(v string) *GetDocumentPathInput

SetDocumentId sets the DocumentId field's value.

func (*GetDocumentPathInput) SetFields

SetFields sets the Fields field's value.

func (*GetDocumentPathInput) SetLimit

SetLimit sets the Limit field's value.

func (*GetDocumentPathInput) SetMarker

SetMarker sets the Marker field's value.

func (GetDocumentPathInput) String

func (s GetDocumentPathInput) String() string

String returns the string representation

func (*GetDocumentPathInput) Validate

func (s *GetDocumentPathInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetDocumentPathOutput

type GetDocumentPathOutput struct {

	// The path information.
	Path *ResourcePath `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentPathResponse

func (GetDocumentPathOutput) GoString

func (s GetDocumentPathOutput) GoString() string

GoString returns the string representation

func (*GetDocumentPathOutput) SetPath

SetPath sets the Path field's value.

func (GetDocumentPathOutput) String

func (s GetDocumentPathOutput) String() string

String returns the string representation

type GetDocumentVersionInput

type GetDocumentVersionInput struct {

	// The ID of the document.
	//
	// DocumentId is a required field
	DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"`

	// A comma-separated list of values. Specify "SOURCE" to include a URL for the
	// source document.
	Fields *string `location:"querystring" locationName:"fields" min:"1" type:"string"`

	// The version ID of the document.
	//
	// VersionId is a required field
	VersionId *string `location:"uri" locationName:"VersionId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentVersionRequest

func (GetDocumentVersionInput) GoString

func (s GetDocumentVersionInput) GoString() string

GoString returns the string representation

func (*GetDocumentVersionInput) SetDocumentId

SetDocumentId sets the DocumentId field's value.

func (*GetDocumentVersionInput) SetFields

SetFields sets the Fields field's value.

func (*GetDocumentVersionInput) SetVersionId

SetVersionId sets the VersionId field's value.

func (GetDocumentVersionInput) String

func (s GetDocumentVersionInput) String() string

String returns the string representation

func (*GetDocumentVersionInput) Validate

func (s *GetDocumentVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetDocumentVersionOutput

type GetDocumentVersionOutput struct {

	// The version metadata.
	Metadata *DocumentVersionMetadata `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentVersionResponse

func (GetDocumentVersionOutput) GoString

func (s GetDocumentVersionOutput) GoString() string

GoString returns the string representation

func (*GetDocumentVersionOutput) SetMetadata

SetMetadata sets the Metadata field's value.

func (GetDocumentVersionOutput) String

func (s GetDocumentVersionOutput) String() string

String returns the string representation

type GetFolderInput

type GetFolderInput struct {

	// The ID of the folder.
	//
	// FolderId is a required field
	FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderRequest

func (GetFolderInput) GoString

func (s GetFolderInput) GoString() string

GoString returns the string representation

func (*GetFolderInput) SetFolderId

func (s *GetFolderInput) SetFolderId(v string) *GetFolderInput

SetFolderId sets the FolderId field's value.

func (GetFolderInput) String

func (s GetFolderInput) String() string

String returns the string representation

func (*GetFolderInput) Validate

func (s *GetFolderInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetFolderOutput

type GetFolderOutput struct {

	// The metadata of the folder.
	Metadata *FolderMetadata `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderResponse

func (GetFolderOutput) GoString

func (s GetFolderOutput) GoString() string

GoString returns the string representation

func (*GetFolderOutput) SetMetadata

func (s *GetFolderOutput) SetMetadata(v *FolderMetadata) *GetFolderOutput

SetMetadata sets the Metadata field's value.

func (GetFolderOutput) String

func (s GetFolderOutput) String() string

String returns the string representation

type GetFolderPathInput

type GetFolderPathInput struct {

	// A comma-separated list of values. Specify "NAME" to include the names of
	// the parent folders.
	Fields *string `location:"querystring" locationName:"fields" min:"1" type:"string"`

	// The ID of the folder.
	//
	// FolderId is a required field
	FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"`

	// The maximum number of levels in the hierarchy to return.
	Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"`

	// This value is not supported.
	Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderPathRequest

func (GetFolderPathInput) GoString

func (s GetFolderPathInput) GoString() string

GoString returns the string representation

func (*GetFolderPathInput) SetFields

func (s *GetFolderPathInput) SetFields(v string) *GetFolderPathInput

SetFields sets the Fields field's value.

func (*GetFolderPathInput) SetFolderId

func (s *GetFolderPathInput) SetFolderId(v string) *GetFolderPathInput

SetFolderId sets the FolderId field's value.

func (*GetFolderPathInput) SetLimit

SetLimit sets the Limit field's value.

func (*GetFolderPathInput) SetMarker

func (s *GetFolderPathInput) SetMarker(v string) *GetFolderPathInput

SetMarker sets the Marker field's value.

func (GetFolderPathInput) String

func (s GetFolderPathInput) String() string

String returns the string representation

func (*GetFolderPathInput) Validate

func (s *GetFolderPathInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetFolderPathOutput

type GetFolderPathOutput struct {

	// The path information.
	Path *ResourcePath `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderPathResponse

func (GetFolderPathOutput) GoString

func (s GetFolderPathOutput) GoString() string

GoString returns the string representation

func (*GetFolderPathOutput) SetPath

SetPath sets the Path field's value.

func (GetFolderPathOutput) String

func (s GetFolderPathOutput) String() string

String returns the string representation

type InitiateDocumentVersionUploadInput

type InitiateDocumentVersionUploadInput struct {

	// The time stamp when the content of the document was originally created.
	ContentCreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The time stamp when the content of the document was modified.
	ContentModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The content type of the document.
	ContentType *string `min:"1" type:"string"`

	// The size of the document, in bytes.
	DocumentSizeInBytes *int64 `type:"long"`

	// The ID of the document.
	Id *string `min:"1" type:"string"`

	// The name of the document.
	Name *string `min:"1" type:"string"`

	// The ID of the parent folder.
	//
	// ParentFolderId is a required field
	ParentFolderId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/InitiateDocumentVersionUploadRequest

func (InitiateDocumentVersionUploadInput) GoString

GoString returns the string representation

func (*InitiateDocumentVersionUploadInput) SetContentCreatedTimestamp

SetContentCreatedTimestamp sets the ContentCreatedTimestamp field's value.

func (*InitiateDocumentVersionUploadInput) SetContentModifiedTimestamp

SetContentModifiedTimestamp sets the ContentModifiedTimestamp field's value.

func (*InitiateDocumentVersionUploadInput) SetContentType

SetContentType sets the ContentType field's value.

func (*InitiateDocumentVersionUploadInput) SetDocumentSizeInBytes

SetDocumentSizeInBytes sets the DocumentSizeInBytes field's value.

func (*InitiateDocumentVersionUploadInput) SetId

SetId sets the Id field's value.

func (*InitiateDocumentVersionUploadInput) SetName

SetName sets the Name field's value.

func (*InitiateDocumentVersionUploadInput) SetParentFolderId

SetParentFolderId sets the ParentFolderId field's value.

func (InitiateDocumentVersionUploadInput) String

String returns the string representation

func (*InitiateDocumentVersionUploadInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type InitiateDocumentVersionUploadOutput

type InitiateDocumentVersionUploadOutput struct {

	// The document metadata.
	Metadata *DocumentMetadata `type:"structure"`

	// The upload metadata.
	UploadMetadata *UploadMetadata `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/InitiateDocumentVersionUploadResponse

func (InitiateDocumentVersionUploadOutput) GoString

GoString returns the string representation

func (*InitiateDocumentVersionUploadOutput) SetMetadata

SetMetadata sets the Metadata field's value.

func (*InitiateDocumentVersionUploadOutput) SetUploadMetadata

SetUploadMetadata sets the UploadMetadata field's value.

func (InitiateDocumentVersionUploadOutput) String

String returns the string representation

type PermissionInfo

type PermissionInfo struct {

	// The role of the user.
	Role *string `type:"string" enum:"RoleType"`

	// The type of permissions.
	Type *string `type:"string" enum:"RolePermissionType"`
	// contains filtered or unexported fields
}

Describes the permissions. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/PermissionInfo

func (PermissionInfo) GoString

func (s PermissionInfo) GoString() string

GoString returns the string representation

func (*PermissionInfo) SetRole

func (s *PermissionInfo) SetRole(v string) *PermissionInfo

SetRole sets the Role field's value.

func (*PermissionInfo) SetType

func (s *PermissionInfo) SetType(v string) *PermissionInfo

SetType sets the Type field's value.

func (PermissionInfo) String

func (s PermissionInfo) String() string

String returns the string representation

type Principal

type Principal struct {

	// The ID of the resource.
	Id *string `min:"1" type:"string"`

	// The permission information for the resource.
	Roles []*PermissionInfo `type:"list"`

	// The type of resource.
	Type *string `type:"string" enum:"PrincipalType"`
	// contains filtered or unexported fields
}

Describes a resource. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/Principal

func (Principal) GoString

func (s Principal) GoString() string

GoString returns the string representation

func (*Principal) SetId

func (s *Principal) SetId(v string) *Principal

SetId sets the Id field's value.

func (*Principal) SetRoles

func (s *Principal) SetRoles(v []*PermissionInfo) *Principal

SetRoles sets the Roles field's value.

func (*Principal) SetType

func (s *Principal) SetType(v string) *Principal

SetType sets the Type field's value.

func (Principal) String

func (s Principal) String() string

String returns the string representation

type RemoveAllResourcePermissionsInput

type RemoveAllResourcePermissionsInput struct {

	// The ID of the resource.
	//
	// ResourceId is a required field
	ResourceId *string `location:"uri" locationName:"ResourceId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveAllResourcePermissionsRequest

func (RemoveAllResourcePermissionsInput) GoString

GoString returns the string representation

func (*RemoveAllResourcePermissionsInput) SetResourceId

SetResourceId sets the ResourceId field's value.

func (RemoveAllResourcePermissionsInput) String

String returns the string representation

func (*RemoveAllResourcePermissionsInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type RemoveAllResourcePermissionsOutput

type RemoveAllResourcePermissionsOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveAllResourcePermissionsOutput

func (RemoveAllResourcePermissionsOutput) GoString

GoString returns the string representation

func (RemoveAllResourcePermissionsOutput) String

String returns the string representation

type RemoveResourcePermissionInput

type RemoveResourcePermissionInput struct {

	// The principal ID of the resource.
	//
	// PrincipalId is a required field
	PrincipalId *string `location:"uri" locationName:"PrincipalId" min:"1" type:"string" required:"true"`

	// The principal type of the resource.
	PrincipalType *string `location:"querystring" locationName:"type" type:"string" enum:"PrincipalType"`

	// The ID of the resource.
	//
	// ResourceId is a required field
	ResourceId *string `location:"uri" locationName:"ResourceId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveResourcePermissionRequest

func (RemoveResourcePermissionInput) GoString

GoString returns the string representation

func (*RemoveResourcePermissionInput) SetPrincipalId

SetPrincipalId sets the PrincipalId field's value.

func (*RemoveResourcePermissionInput) SetPrincipalType

SetPrincipalType sets the PrincipalType field's value.

func (*RemoveResourcePermissionInput) SetResourceId

SetResourceId sets the ResourceId field's value.

func (RemoveResourcePermissionInput) String

String returns the string representation

func (*RemoveResourcePermissionInput) Validate

func (s *RemoveResourcePermissionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RemoveResourcePermissionOutput

type RemoveResourcePermissionOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveResourcePermissionOutput

func (RemoveResourcePermissionOutput) GoString

GoString returns the string representation

func (RemoveResourcePermissionOutput) String

String returns the string representation

type ResourcePath

type ResourcePath struct {

	// The components of the resource path.
	Components []*ResourcePathComponent `type:"list"`
	// contains filtered or unexported fields
}

Describes the path information of a resource. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ResourcePath

func (ResourcePath) GoString

func (s ResourcePath) GoString() string

GoString returns the string representation

func (*ResourcePath) SetComponents

func (s *ResourcePath) SetComponents(v []*ResourcePathComponent) *ResourcePath

SetComponents sets the Components field's value.

func (ResourcePath) String

func (s ResourcePath) String() string

String returns the string representation

type ResourcePathComponent

type ResourcePathComponent struct {

	// The ID of the resource path.
	Id *string `min:"1" type:"string"`

	// The name of the resource path.
	Name *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Describes the resource path. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ResourcePathComponent

func (ResourcePathComponent) GoString

func (s ResourcePathComponent) GoString() string

GoString returns the string representation

func (*ResourcePathComponent) SetId

SetId sets the Id field's value.

func (*ResourcePathComponent) SetName

SetName sets the Name field's value.

func (ResourcePathComponent) String

func (s ResourcePathComponent) String() string

String returns the string representation

type SharePrincipal

type SharePrincipal struct {

	// The ID of the recipient.
	//
	// Id is a required field
	Id *string `min:"1" type:"string" required:"true"`

	// The role of the recipient.
	//
	// Role is a required field
	Role *string `type:"string" required:"true" enum:"RoleType"`

	// The type of the recipient.
	//
	// Type is a required field
	Type *string `type:"string" required:"true" enum:"PrincipalType"`
	// contains filtered or unexported fields
}

Describes the recipient type and ID, if available. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/SharePrincipal

func (SharePrincipal) GoString

func (s SharePrincipal) GoString() string

GoString returns the string representation

func (*SharePrincipal) SetId

func (s *SharePrincipal) SetId(v string) *SharePrincipal

SetId sets the Id field's value.

func (*SharePrincipal) SetRole

func (s *SharePrincipal) SetRole(v string) *SharePrincipal

SetRole sets the Role field's value.

func (*SharePrincipal) SetType

func (s *SharePrincipal) SetType(v string) *SharePrincipal

SetType sets the Type field's value.

func (SharePrincipal) String

func (s SharePrincipal) String() string

String returns the string representation

func (*SharePrincipal) Validate

func (s *SharePrincipal) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ShareResult

type ShareResult struct {

	// The ID of the principal.
	PrincipalId *string `min:"1" type:"string"`

	// The role.
	Role *string `type:"string" enum:"RoleType"`

	// The ID of the resource that was shared.
	ShareId *string `min:"1" type:"string"`

	// The status.
	Status *string `type:"string" enum:"ShareStatusType"`

	// The status message.
	StatusMessage *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the share results of a resource. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ShareResult

func (ShareResult) GoString

func (s ShareResult) GoString() string

GoString returns the string representation

func (*ShareResult) SetPrincipalId

func (s *ShareResult) SetPrincipalId(v string) *ShareResult

SetPrincipalId sets the PrincipalId field's value.

func (*ShareResult) SetRole

func (s *ShareResult) SetRole(v string) *ShareResult

SetRole sets the Role field's value.

func (*ShareResult) SetShareId

func (s *ShareResult) SetShareId(v string) *ShareResult

SetShareId sets the ShareId field's value.

func (*ShareResult) SetStatus

func (s *ShareResult) SetStatus(v string) *ShareResult

SetStatus sets the Status field's value.

func (*ShareResult) SetStatusMessage

func (s *ShareResult) SetStatusMessage(v string) *ShareResult

SetStatusMessage sets the StatusMessage field's value.

func (ShareResult) String

func (s ShareResult) String() string

String returns the string representation

type StorageRuleType

type StorageRuleType struct {

	// The amount of storage allocated, in bytes.
	StorageAllocatedInBytes *int64 `type:"long"`

	// The type of storage.
	StorageType *string `type:"string" enum:"StorageType"`
	// contains filtered or unexported fields
}

Describes the storage for a user. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/StorageRuleType

func (StorageRuleType) GoString

func (s StorageRuleType) GoString() string

GoString returns the string representation

func (*StorageRuleType) SetStorageAllocatedInBytes

func (s *StorageRuleType) SetStorageAllocatedInBytes(v int64) *StorageRuleType

SetStorageAllocatedInBytes sets the StorageAllocatedInBytes field's value.

func (*StorageRuleType) SetStorageType

func (s *StorageRuleType) SetStorageType(v string) *StorageRuleType

SetStorageType sets the StorageType field's value.

func (StorageRuleType) String

func (s StorageRuleType) String() string

String returns the string representation

type Subscription

type Subscription struct {

	// The endpoint of the subscription.
	EndPoint *string `min:"1" type:"string"`

	// The protocol of the subscription.
	Protocol *string `type:"string" enum:"SubscriptionProtocolType"`

	// The ID of the subscription.
	SubscriptionId *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Describes a subscription. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/Subscription

func (Subscription) GoString

func (s Subscription) GoString() string

GoString returns the string representation

func (*Subscription) SetEndPoint

func (s *Subscription) SetEndPoint(v string) *Subscription

SetEndPoint sets the EndPoint field's value.

func (*Subscription) SetProtocol

func (s *Subscription) SetProtocol(v string) *Subscription

SetProtocol sets the Protocol field's value.

func (*Subscription) SetSubscriptionId

func (s *Subscription) SetSubscriptionId(v string) *Subscription

SetSubscriptionId sets the SubscriptionId field's value.

func (Subscription) String

func (s Subscription) String() string

String returns the string representation

type UpdateDocumentInput

type UpdateDocumentInput struct {

	// The ID of the document.
	//
	// DocumentId is a required field
	DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"`

	// The name of the document.
	Name *string `min:"1" type:"string"`

	// The ID of the parent folder.
	ParentFolderId *string `min:"1" type:"string"`

	// The resource state of the document. Note that only ACTIVE and RECYCLED are
	// supported.
	ResourceState *string `type:"string" enum:"ResourceStateType"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentRequest

func (UpdateDocumentInput) GoString

func (s UpdateDocumentInput) GoString() string

GoString returns the string representation

func (*UpdateDocumentInput) SetDocumentId

func (s *UpdateDocumentInput) SetDocumentId(v string) *UpdateDocumentInput

SetDocumentId sets the DocumentId field's value.

func (*UpdateDocumentInput) SetName

SetName sets the Name field's value.

func (*UpdateDocumentInput) SetParentFolderId

func (s *UpdateDocumentInput) SetParentFolderId(v string) *UpdateDocumentInput

SetParentFolderId sets the ParentFolderId field's value.

func (*UpdateDocumentInput) SetResourceState

func (s *UpdateDocumentInput) SetResourceState(v string) *UpdateDocumentInput

SetResourceState sets the ResourceState field's value.

func (UpdateDocumentInput) String

func (s UpdateDocumentInput) String() string

String returns the string representation

func (*UpdateDocumentInput) Validate

func (s *UpdateDocumentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateDocumentOutput

type UpdateDocumentOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentOutput

func (UpdateDocumentOutput) GoString

func (s UpdateDocumentOutput) GoString() string

GoString returns the string representation

func (UpdateDocumentOutput) String

func (s UpdateDocumentOutput) String() string

String returns the string representation

type UpdateDocumentVersionInput

type UpdateDocumentVersionInput struct {

	// The ID of the document.
	//
	// DocumentId is a required field
	DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"`

	// The version ID of the document.
	//
	// VersionId is a required field
	VersionId *string `location:"uri" locationName:"VersionId" min:"1" type:"string" required:"true"`

	// The status of the version.
	VersionStatus *string `type:"string" enum:"DocumentVersionStatus"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentVersionRequest

func (UpdateDocumentVersionInput) GoString

func (s UpdateDocumentVersionInput) GoString() string

GoString returns the string representation

func (*UpdateDocumentVersionInput) SetDocumentId

SetDocumentId sets the DocumentId field's value.

func (*UpdateDocumentVersionInput) SetVersionId

SetVersionId sets the VersionId field's value.

func (*UpdateDocumentVersionInput) SetVersionStatus

SetVersionStatus sets the VersionStatus field's value.

func (UpdateDocumentVersionInput) String

String returns the string representation

func (*UpdateDocumentVersionInput) Validate

func (s *UpdateDocumentVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateDocumentVersionOutput

type UpdateDocumentVersionOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentVersionOutput

func (UpdateDocumentVersionOutput) GoString

func (s UpdateDocumentVersionOutput) GoString() string

GoString returns the string representation

func (UpdateDocumentVersionOutput) String

String returns the string representation

type UpdateFolderInput

type UpdateFolderInput struct {

	// The ID of the folder.
	//
	// FolderId is a required field
	FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"`

	// The name of the folder.
	Name *string `min:"1" type:"string"`

	// The ID of the parent folder.
	ParentFolderId *string `min:"1" type:"string"`

	// The resource state of the folder. Note that only ACTIVE and RECYCLED are
	// accepted values from the API.
	ResourceState *string `type:"string" enum:"ResourceStateType"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateFolderRequest

func (UpdateFolderInput) GoString

func (s UpdateFolderInput) GoString() string

GoString returns the string representation

func (*UpdateFolderInput) SetFolderId

func (s *UpdateFolderInput) SetFolderId(v string) *UpdateFolderInput

SetFolderId sets the FolderId field's value.

func (*UpdateFolderInput) SetName

SetName sets the Name field's value.

func (*UpdateFolderInput) SetParentFolderId

func (s *UpdateFolderInput) SetParentFolderId(v string) *UpdateFolderInput

SetParentFolderId sets the ParentFolderId field's value.

func (*UpdateFolderInput) SetResourceState

func (s *UpdateFolderInput) SetResourceState(v string) *UpdateFolderInput

SetResourceState sets the ResourceState field's value.

func (UpdateFolderInput) String

func (s UpdateFolderInput) String() string

String returns the string representation

func (*UpdateFolderInput) Validate

func (s *UpdateFolderInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateFolderOutput

type UpdateFolderOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateFolderOutput

func (UpdateFolderOutput) GoString

func (s UpdateFolderOutput) GoString() string

GoString returns the string representation

func (UpdateFolderOutput) String

func (s UpdateFolderOutput) String() string

String returns the string representation

type UpdateUserInput

type UpdateUserInput struct {

	// The given name of the user.
	GivenName *string `min:"1" type:"string"`

	// The locale of the user.
	Locale *string `type:"string" enum:"LocaleType"`

	// The amount of storage for the user.
	StorageRule *StorageRuleType `type:"structure"`

	// The surname of the user.
	Surname *string `min:"1" type:"string"`

	// The time zone ID of the user.
	TimeZoneId *string `min:"1" type:"string"`

	// The type of the user.
	Type *string `type:"string" enum:"UserType"`

	// The ID of the user.
	//
	// UserId is a required field
	UserId *string `location:"uri" locationName:"UserId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateUserRequest

func (UpdateUserInput) GoString

func (s UpdateUserInput) GoString() string

GoString returns the string representation

func (*UpdateUserInput) SetGivenName

func (s *UpdateUserInput) SetGivenName(v string) *UpdateUserInput

SetGivenName sets the GivenName field's value.

func (*UpdateUserInput) SetLocale

func (s *UpdateUserInput) SetLocale(v string) *UpdateUserInput

SetLocale sets the Locale field's value.

func (*UpdateUserInput) SetStorageRule

func (s *UpdateUserInput) SetStorageRule(v *StorageRuleType) *UpdateUserInput

SetStorageRule sets the StorageRule field's value.

func (*UpdateUserInput) SetSurname

func (s *UpdateUserInput) SetSurname(v string) *UpdateUserInput

SetSurname sets the Surname field's value.

func (*UpdateUserInput) SetTimeZoneId

func (s *UpdateUserInput) SetTimeZoneId(v string) *UpdateUserInput

SetTimeZoneId sets the TimeZoneId field's value.

func (*UpdateUserInput) SetType

func (s *UpdateUserInput) SetType(v string) *UpdateUserInput

SetType sets the Type field's value.

func (*UpdateUserInput) SetUserId

func (s *UpdateUserInput) SetUserId(v string) *UpdateUserInput

SetUserId sets the UserId field's value.

func (UpdateUserInput) String

func (s UpdateUserInput) String() string

String returns the string representation

func (*UpdateUserInput) Validate

func (s *UpdateUserInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateUserOutput

type UpdateUserOutput struct {

	// The user information.
	User *User `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateUserResponse

func (UpdateUserOutput) GoString

func (s UpdateUserOutput) GoString() string

GoString returns the string representation

func (*UpdateUserOutput) SetUser

func (s *UpdateUserOutput) SetUser(v *User) *UpdateUserOutput

SetUser sets the User field's value.

func (UpdateUserOutput) String

func (s UpdateUserOutput) String() string

String returns the string representation

type UploadMetadata

type UploadMetadata struct {

	// The signed headers.
	SignedHeaders map[string]*string `type:"map"`

	// The URL of the upload.
	UploadUrl *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Describes the upload. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UploadMetadata

func (UploadMetadata) GoString

func (s UploadMetadata) GoString() string

GoString returns the string representation

func (*UploadMetadata) SetSignedHeaders

func (s *UploadMetadata) SetSignedHeaders(v map[string]*string) *UploadMetadata

SetSignedHeaders sets the SignedHeaders field's value.

func (*UploadMetadata) SetUploadUrl

func (s *UploadMetadata) SetUploadUrl(v string) *UploadMetadata

SetUploadUrl sets the UploadUrl field's value.

func (UploadMetadata) String

func (s UploadMetadata) String() string

String returns the string representation

type User

type User struct {

	// The time when the user was created.
	CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The email address of the user.
	EmailAddress *string `min:"1" type:"string"`

	// The given name of the user.
	GivenName *string `min:"1" type:"string"`

	// The ID of the user.
	Id *string `min:"1" type:"string"`

	// The locale of the user.
	Locale *string `type:"string" enum:"LocaleType"`

	// The time when the user was modified.
	ModifiedTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The ID of the organization.
	OrganizationId *string `min:"1" type:"string"`

	// The ID of the recycle bin folder.
	RecycleBinFolderId *string `min:"1" type:"string"`

	// The ID of the root folder.
	RootFolderId *string `min:"1" type:"string"`

	// The status of the user.
	Status *string `type:"string" enum:"UserStatusType"`

	// The storage for the user.
	Storage *UserStorageMetadata `type:"structure"`

	// The surname of the user.
	Surname *string `min:"1" type:"string"`

	// The time zone ID of the user.
	TimeZoneId *string `min:"1" type:"string"`

	// The type of user.
	Type *string `type:"string" enum:"UserType"`

	// The login name of the user.
	Username *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Describes a user. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/User

func (User) GoString

func (s User) GoString() string

GoString returns the string representation

func (*User) SetCreatedTimestamp

func (s *User) SetCreatedTimestamp(v time.Time) *User

SetCreatedTimestamp sets the CreatedTimestamp field's value.

func (*User) SetEmailAddress

func (s *User) SetEmailAddress(v string) *User

SetEmailAddress sets the EmailAddress field's value.

func (*User) SetGivenName

func (s *User) SetGivenName(v string) *User

SetGivenName sets the GivenName field's value.

func (*User) SetId

func (s *User) SetId(v string) *User

SetId sets the Id field's value.

func (*User) SetLocale

func (s *User) SetLocale(v string) *User

SetLocale sets the Locale field's value.

func (*User) SetModifiedTimestamp

func (s *User) SetModifiedTimestamp(v time.Time) *User

SetModifiedTimestamp sets the ModifiedTimestamp field's value.

func (*User) SetOrganizationId

func (s *User) SetOrganizationId(v string) *User

SetOrganizationId sets the OrganizationId field's value.

func (*User) SetRecycleBinFolderId

func (s *User) SetRecycleBinFolderId(v string) *User

SetRecycleBinFolderId sets the RecycleBinFolderId field's value.

func (*User) SetRootFolderId

func (s *User) SetRootFolderId(v string) *User

SetRootFolderId sets the RootFolderId field's value.

func (*User) SetStatus

func (s *User) SetStatus(v string) *User

SetStatus sets the Status field's value.

func (*User) SetStorage

func (s *User) SetStorage(v *UserStorageMetadata) *User

SetStorage sets the Storage field's value.

func (*User) SetSurname

func (s *User) SetSurname(v string) *User

SetSurname sets the Surname field's value.

func (*User) SetTimeZoneId

func (s *User) SetTimeZoneId(v string) *User

SetTimeZoneId sets the TimeZoneId field's value.

func (*User) SetType

func (s *User) SetType(v string) *User

SetType sets the Type field's value.

func (*User) SetUsername

func (s *User) SetUsername(v string) *User

SetUsername sets the Username field's value.

func (User) String

func (s User) String() string

String returns the string representation

type UserStorageMetadata

type UserStorageMetadata struct {

	// The storage for a user.
	StorageRule *StorageRuleType `type:"structure"`

	// The amount of storage utilized, in bytes.
	StorageUtilizedInBytes *int64 `type:"long"`
	// contains filtered or unexported fields
}

Describes the storage for a user. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UserStorageMetadata

func (UserStorageMetadata) GoString

func (s UserStorageMetadata) GoString() string

GoString returns the string representation

func (*UserStorageMetadata) SetStorageRule

SetStorageRule sets the StorageRule field's value.

func (*UserStorageMetadata) SetStorageUtilizedInBytes

func (s *UserStorageMetadata) SetStorageUtilizedInBytes(v int64) *UserStorageMetadata

SetStorageUtilizedInBytes sets the StorageUtilizedInBytes field's value.

func (UserStorageMetadata) String

func (s UserStorageMetadata) String() string

String returns the string representation

type WorkDocs

type WorkDocs struct {
	*client.Client
}

The WorkDocs API is designed for the following use cases:

  • File Migration: File migration applications are supported for users who want to migrate their files from an on-premise or off-premise file system or service. Users can insert files into a user directory structure, as well as allow for basic metadata changes, such as modifications to the permissions of files.

  • Security: Support security applications are supported for users who have additional security needs, such as anti-virus or data loss prevention. The APIs, in conjunction with Amazon CloudTrail, allow these applications to detect when changes occur in Amazon WorkDocs, so the application can take the necessary actions and replace the target file. The application can also choose to email the user if the target file violates the policy.

  • eDiscovery/Analytics: General administrative applications are supported, such as eDiscovery and analytics. These applications can choose to mimic and/or record the actions in an Amazon WorkDocs site, in conjunction with Amazon CloudTrails, to replicate data for eDiscovery, backup, or analytical applications.

All Amazon WorkDocs APIs are Amazon authenticated, certificate-signed APIs. They not only require the use of the AWS SDK, but also allow for the exclusive use of IAM users and roles to help facilitate access, trust, and permission policies. By creating a role and allowing an IAM user to access the Amazon WorkDocs site, the IAM user gains full administrative visibility into the entire Amazon WorkDocs site (or as set in the IAM policy). This includes, but is not limited to, the ability to modify file permissions and upload any file to any user. This allows developers to perform the three use cases above, as well as give users the ability to grant access on a selective basis using the IAM model. The service client's operations are safe to be used concurrently. It is not safe to mutate any of the client's properties though. Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *WorkDocs

New creates a new instance of the WorkDocs client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

// Create a WorkDocs client from just a session.
svc := workdocs.New(mySession)

// Create a WorkDocs client with additional configuration
svc := workdocs.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*WorkDocs) 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 or fails to upload 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 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.AbortDocumentVersionUploadInput{
		DocumentId: aws.String("ResourceIdType"),        // Required
		VersionId:  aws.String("DocumentVersionIdType"), // Required
	}
	resp, err := svc.AbortDocumentVersionUpload(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See AbortDocumentVersionUpload for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the AbortDocumentVersionUpload method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.ActivateUserInput{
		UserId: aws.String("IdType"), // Required
	}
	resp, err := svc.ActivateUser(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See ActivateUser for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ActivateUser method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.AddResourcePermissionsInput{
		Principals: []*workdocs.SharePrincipal{ // Required
			{ // Required
				Id:   aws.String("IdType"),        // Required
				Role: aws.String("RoleType"),      // Required
				Type: aws.String("PrincipalType"), // Required
			},
			// More values...
		},
		ResourceId: aws.String("ResourceIdType"), // Required
	}
	resp, err := svc.AddResourcePermissions(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See AddResourcePermissions for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the AddResourcePermissions method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

  • ErrCodeLimitExceededException "LimitExceededException" You've exceeded the maximum of 100,000 folders under the parent folder.

  • 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.CreateFolderInput{
		ParentFolderId: aws.String("ResourceIdType"), // Required
		Name:           aws.String("ResourceNameType"),
	}
	resp, err := svc.CreateFolder(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See CreateFolder for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateFolder method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) CreateNotificationSubscription

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

CreateNotificationSubscription API operation for Amazon WorkDocs.

Configure WorkDocs to use Amazon SNS notifications.

The endpoint receives a confirmation message, and must confirm the subscription. For more information, see Confirm the Subscription (http://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.html#SendMessageToHttp.confirm) in the Amazon Simple Notification Service 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.CreateNotificationSubscriptionInput{
		Endpoint:         aws.String("SubscriptionEndPointType"), // Required
		OrganizationId:   aws.String("IdType"),                   // Required
		Protocol:         aws.String("SubscriptionProtocolType"), // Required
		SubscriptionType: aws.String("SubscriptionType"),         // Required
	}
	resp, err := svc.CreateNotificationSubscription(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See CreateNotificationSubscription for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateNotificationSubscription method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.CreateUserInput{
		GivenName:      aws.String("UserAttributeValueType"), // Required
		Password:       aws.String("PasswordType"),           // Required
		Surname:        aws.String("UserAttributeValueType"), // Required
		Username:       aws.String("UsernameType"),           // Required
		OrganizationId: aws.String("IdType"),
		StorageRule: &workdocs.StorageRuleType{
			StorageAllocatedInBytes: aws.Int64(1),
			StorageType:             aws.String("StorageType"),
		},
		TimeZoneId: aws.String("TimeZoneIdType"),
	}
	resp, err := svc.CreateUser(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See CreateUser for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateUser method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.DeactivateUserInput{
		UserId: aws.String("IdType"), // Required
	}
	resp, err := svc.DeactivateUser(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See DeactivateUser for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeactivateUser method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

  • 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.DeleteDocumentInput{
		DocumentId: aws.String("ResourceIdType"), // Required
	}
	resp, err := svc.DeleteDocument(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See DeleteDocument for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteDocument method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

  • 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.DeleteFolderInput{
		FolderId: aws.String("ResourceIdType"), // Required
	}
	resp, err := svc.DeleteFolder(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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.

  • 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.DeleteFolderContentsInput{
		FolderId: aws.String("ResourceIdType"), // Required
	}
	resp, err := svc.DeleteFolderContents(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See DeleteFolderContents for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteFolderContents method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See DeleteFolder for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteFolder method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.DeleteNotificationSubscriptionInput{
		OrganizationId: aws.String("IdType"), // Required
		SubscriptionId: aws.String("IdType"), // Required
	}
	resp, err := svc.DeleteNotificationSubscription(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See DeleteNotificationSubscription for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteNotificationSubscription method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.DeleteUserInput{
		UserId: aws.String("IdType"), // Required
	}
	resp, err := svc.DeleteUser(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See DeleteUser for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteUser method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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 and/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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.DescribeDocumentVersionsInput{
		DocumentId: aws.String("ResourceIdType"), // Required
		Fields:     aws.String("FieldNamesType"),
		Include:    aws.String("FieldNamesType"),
		Limit:      aws.Int64(1),
		Marker:     aws.String("PageMarkerType"),
	}
	resp, err := svc.DescribeDocumentVersions(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) DescribeDocumentVersionsPages

func (c *WorkDocs) DescribeDocumentVersionsPages(input *DescribeDocumentVersionsInput, fn func(p *DescribeDocumentVersionsOutput, lastPage bool) (shouldContinue 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
    })

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See DescribeDocumentVersions for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeDocumentVersions method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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 sub-folders.

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 and/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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.DescribeFolderContentsInput{
		FolderId: aws.String("ResourceIdType"), // Required
		Include:  aws.String("FieldNamesType"),
		Limit:    aws.Int64(1),
		Marker:   aws.String("PageMarkerType"),
		Order:    aws.String("OrderType"),
		Sort:     aws.String("ResourceSortType"),
		Type:     aws.String("FolderContentType"),
	}
	resp, err := svc.DescribeFolderContents(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) DescribeFolderContentsPages

func (c *WorkDocs) DescribeFolderContentsPages(input *DescribeFolderContentsInput, fn func(p *DescribeFolderContentsOutput, lastPage bool) (shouldContinue 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
    })

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See DescribeFolderContents for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeFolderContents method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.DescribeNotificationSubscriptionsInput{
		OrganizationId: aws.String("IdType"), // Required
		Limit:          aws.Int64(1),
		Marker:         aws.String("PageMarkerType"),
	}
	resp, err := svc.DescribeNotificationSubscriptions(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See DescribeNotificationSubscriptions for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeNotificationSubscriptions method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.DescribeResourcePermissionsInput{
		ResourceId: aws.String("ResourceIdType"), // Required
		Limit:      aws.Int64(1),
		Marker:     aws.String("PageMarkerType"),
	}
	resp, err := svc.DescribeResourcePermissions(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See DescribeResourcePermissions for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeResourcePermissions method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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:

  • 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 and/or limit fields are not valid.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.DescribeUsersInput{
		Fields:         aws.String("FieldNamesType"),
		Include:        aws.String("UserFilterType"),
		Limit:          aws.Int64(1),
		Marker:         aws.String("PageMarkerType"),
		Order:          aws.String("OrderType"),
		OrganizationId: aws.String("IdType"),
		Query:          aws.String("SearchQueryType"),
		Sort:           aws.String("UserSortType"),
		UserIds:        aws.String("UserIdsType"),
	}
	resp, err := svc.DescribeUsers(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) DescribeUsersPages

func (c *WorkDocs) DescribeUsersPages(input *DescribeUsersInput, fn func(p *DescribeUsersOutput, lastPage bool) (shouldContinue 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
    })

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See DescribeUsers for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeUsers method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) GetDocument

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

GetDocument API operation for Amazon WorkDocs.

Retrieves the specified document object.

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 and/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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.GetDocumentInput{
		DocumentId: aws.String("ResourceIdType"), // Required
	}
	resp, err := svc.GetDocument(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.GetDocumentPathInput{
		DocumentId: aws.String("IdType"), // Required
		Fields:     aws.String("FieldNamesType"),
		Limit:      aws.Int64(1),
		Marker:     aws.String("PageMarkerType"),
	}
	resp, err := svc.GetDocumentPath(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See GetDocumentPath for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetDocumentPath method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See GetDocument for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetDocument method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.GetDocumentVersionInput{
		DocumentId: aws.String("ResourceIdType"),        // Required
		VersionId:  aws.String("DocumentVersionIdType"), // Required
		Fields:     aws.String("FieldNamesType"),
	}
	resp, err := svc.GetDocumentVersion(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See GetDocumentVersion for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetDocumentVersion method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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 and/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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.GetFolderInput{
		FolderId: aws.String("ResourceIdType"), // Required
	}
	resp, err := svc.GetFolder(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.GetFolderPathInput{
		FolderId: aws.String("IdType"), // Required
		Fields:   aws.String("FieldNamesType"),
		Limit:    aws.Int64(1),
		Marker:   aws.String("PageMarkerType"),
	}
	resp, err := svc.GetFolderPath(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See GetFolderPath for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetFolderPath method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See GetFolder for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetFolder method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"
	"time"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.InitiateDocumentVersionUploadInput{
		ParentFolderId:           aws.String("ResourceIdType"), // Required
		ContentCreatedTimestamp:  aws.Time(time.Now()),
		ContentModifiedTimestamp: aws.Time(time.Now()),
		ContentType:              aws.String("DocumentContentType"),
		DocumentSizeInBytes:      aws.Int64(1),
		Id:                       aws.String("ResourceIdType"),
		Name:                     aws.String("ResourceNameType"),
	}
	resp, err := svc.InitiateDocumentVersionUpload(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See InitiateDocumentVersionUpload for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the InitiateDocumentVersionUpload method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.RemoveAllResourcePermissionsInput{
		ResourceId: aws.String("ResourceIdType"), // Required
	}
	resp, err := svc.RemoveAllResourcePermissions(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See RemoveAllResourcePermissions for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the RemoveAllResourcePermissions method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.RemoveResourcePermissionInput{
		PrincipalId:   aws.String("IdType"),         // Required
		ResourceId:    aws.String("ResourceIdType"), // Required
		PrincipalType: aws.String("PrincipalType"),
	}
	resp, err := svc.RemoveResourcePermission(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See RemoveResourcePermission for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the RemoveResourcePermission method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) UpdateDocument

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

UpdateDocument API operation for Amazon WorkDocs.

Updates the specified attributes of the specified 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" You've exceeded the maximum of 100,000 folders under the parent folder.

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

  • 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.

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

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.UpdateDocumentInput{
		DocumentId:     aws.String("ResourceIdType"), // Required
		Name:           aws.String("ResourceNameType"),
		ParentFolderId: aws.String("ResourceIdType"),
		ResourceState:  aws.String("ResourceStateType"),
	}
	resp, err := svc.UpdateDocument(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See UpdateDocument for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateDocument method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

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

func (*WorkDocs) 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.

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentVersion

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.UpdateDocumentVersionInput{
		DocumentId:    aws.String("ResourceIdType"),        // Required
		VersionId:     aws.String("DocumentVersionIdType"), // Required
		VersionStatus: aws.String("DocumentVersionStatus"),
	}
	resp, err := svc.UpdateDocumentVersion(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See UpdateDocumentVersion for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateDocumentVersion method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentVersion

func (*WorkDocs) 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.

  • ErrCodeConcurrentModificationException "ConcurrentModificationException" The resource hierarchy is changing.

  • ErrCodeLimitExceededException "LimitExceededException" You've exceeded the maximum of 100,000 folders under the parent folder.

  • 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.

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateFolder

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.UpdateFolderInput{
		FolderId:       aws.String("ResourceIdType"), // Required
		Name:           aws.String("ResourceNameType"),
		ParentFolderId: aws.String("ResourceIdType"),
		ResourceState:  aws.String("ResourceStateType"),
	}
	resp, err := svc.UpdateFolder(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See UpdateFolder for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateFolder method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateFolder

func (*WorkDocs) 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.

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateUser

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/workdocs"
)

func main() {
	sess := session.Must(session.NewSession())

	svc := workdocs.New(sess)

	params := &workdocs.UpdateUserInput{
		UserId:    aws.String("IdType"), // Required
		GivenName: aws.String("UserAttributeValueType"),
		Locale:    aws.String("LocaleType"),
		StorageRule: &workdocs.StorageRuleType{
			StorageAllocatedInBytes: aws.Int64(1),
			StorageType:             aws.String("StorageType"),
		},
		Surname:    aws.String("UserAttributeValueType"),
		TimeZoneId: aws.String("TimeZoneIdType"),
		Type:       aws.String("UserType"),
	}
	resp, err := svc.UpdateUser(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*WorkDocs) 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 can be used to capture response data after the request's "Send" method is called.

See UpdateUser for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateUser method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// 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)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateUser

Directories

Path Synopsis
Package workdocsiface provides an interface to enable mocking the Amazon WorkDocs service client for testing your code.
Package workdocsiface provides an interface to enable mocking the Amazon WorkDocs service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL