AWS SDK for Go (PILOT)
API Reference

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

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

WorkMail

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

type WorkMail struct { *client.Client }

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

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

Client

Type: *client.Client

Method

AssociateDelegateToResource

func (c *WorkMail) AssociateDelegateToResource(input *AssociateDelegateToResourceInput) (*AssociateDelegateToResourceOutput, error)

AssociateDelegateToResource API operation for Amazon WorkMail.

Adds a member to the resource's set of delegates.

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 WorkMail's API operation AssociateDelegateToResource for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/AssociateDelegateToResource

AssociateDelegateToResourceRequest

func (c *WorkMail) AssociateDelegateToResourceRequest(input *AssociateDelegateToResourceInput) (req *request.Request, output *AssociateDelegateToResourceOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/AssociateDelegateToResource

AssociateDelegateToResourceWithContext

func (c *WorkMail) AssociateDelegateToResourceWithContext(ctx aws.Context, input *AssociateDelegateToResourceInput, opts ...request.Option) (*AssociateDelegateToResourceOutput, error)

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

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

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

See Also

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

AssociateMemberToGroup

func (c *WorkMail) AssociateMemberToGroup(input *AssociateMemberToGroupInput) (*AssociateMemberToGroupOutput, error)

AssociateMemberToGroup API operation for Amazon WorkMail.

Adds a member to the group's set.

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 WorkMail's API operation AssociateMemberToGroup for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" The Directory Service doesn't recognize the credentials supplied by the Amazon WorkMail service.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The directory that you are trying to perform operations on isn't available.

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" You can't perform a write operation against a read-only directory.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/AssociateMemberToGroup

AssociateMemberToGroupRequest

func (c *WorkMail) AssociateMemberToGroupRequest(input *AssociateMemberToGroupInput) (req *request.Request, output *AssociateMemberToGroupOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/AssociateMemberToGroup

AssociateMemberToGroupWithContext

func (c *WorkMail) AssociateMemberToGroupWithContext(ctx aws.Context, input *AssociateMemberToGroupInput, opts ...request.Option) (*AssociateMemberToGroupOutput, error)

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

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

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

See Also

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

CreateAlias

func (c *WorkMail) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error)

CreateAlias API operation for Amazon WorkMail.

Adds an alias to the set of a given member of Amazon WorkMail.

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 WorkMail's API operation CreateAlias for usage and error information.

Returned Error Codes:

  • ErrCodeEmailAddressInUseException "EmailAddressInUseException" The email address that you're trying to assign is already created for a different user, group, or resource.

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeMailDomainNotFoundException "MailDomainNotFoundException" For an email or alias to be created in Amazon WorkMail, the included domain must be defined in the organization.

  • ErrCodeMailDomainStateException "MailDomainStateException" After a domain has been added to the organization, it must be verified. The domain is not yet verified.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateAlias

CreateAliasRequest

func (c *WorkMail) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *CreateAliasOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateAlias

CreateAliasWithContext

func (c *WorkMail) CreateAliasWithContext(ctx aws.Context, input *CreateAliasInput, opts ...request.Option) (*CreateAliasOutput, error)

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

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

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

See Also

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

CreateGroup

func (c *WorkMail) CreateGroup(input *CreateGroupInput) (*CreateGroupOutput, error)

CreateGroup API operation for Amazon WorkMail.

Creates a group that can be used in Amazon WorkMail by calling the RegisterToWorkMail operation.

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 WorkMail's API operation CreateGroup for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" The Directory Service doesn't recognize the credentials supplied by the Amazon WorkMail service.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The directory that you are trying to perform operations on isn't available.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeNameAvailabilityException "NameAvailabilityException" The entity (user, group, or user) name isn't unique in Amazon WorkMail.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

  • ErrCodeReservedNameException "ReservedNameException" This entity name is not allowed in Amazon WorkMail.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" You can't perform a write operation against a read-only directory.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateGroup

CreateGroupRequest

func (c *WorkMail) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, output *CreateGroupOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateGroup

CreateGroupWithContext

func (c *WorkMail) CreateGroupWithContext(ctx aws.Context, input *CreateGroupInput, opts ...request.Option) (*CreateGroupOutput, error)

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

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

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

See Also

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

CreateResource

func (c *WorkMail) CreateResource(input *CreateResourceInput) (*CreateResourceOutput, error)

CreateResource API operation for Amazon WorkMail.

Creates a new Amazon WorkMail resource. The available types are equipment and room.

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 WorkMail's API operation CreateResource for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" The Directory Service doesn't recognize the credentials supplied by the Amazon WorkMail service.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The directory that you are trying to perform operations on isn't available.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeNameAvailabilityException "NameAvailabilityException" The entity (user, group, or user) name isn't unique in Amazon WorkMail.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

  • ErrCodeReservedNameException "ReservedNameException" This entity name is not allowed in Amazon WorkMail.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateResource

CreateResourceRequest

func (c *WorkMail) CreateResourceRequest(input *CreateResourceInput) (req *request.Request, output *CreateResourceOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateResource

CreateResourceWithContext

func (c *WorkMail) CreateResourceWithContext(ctx aws.Context, input *CreateResourceInput, opts ...request.Option) (*CreateResourceOutput, error)

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

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

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

See Also

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

CreateUser

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

CreateUser API operation for Amazon WorkMail.

Creates a user who can be used in Amazon WorkMail by calling the RegisterToWorkMail operation.

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 WorkMail's API operation CreateUser for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" The Directory Service doesn't recognize the credentials supplied by the Amazon WorkMail service.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The directory that you are trying to perform operations on isn't available.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeInvalidPasswordException "InvalidPasswordException" The supplied password doesn't match the minimum security constraints, such as length or use of special characters.

  • ErrCodeNameAvailabilityException "NameAvailabilityException" The entity (user, group, or user) name isn't unique in Amazon WorkMail.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

  • ErrCodeReservedNameException "ReservedNameException" This entity name is not allowed in Amazon WorkMail.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" You can't perform a write operation against a read-only directory.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateUser

CreateUserRequest

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

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateUser

CreateUserWithContext

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

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

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

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

See Also

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

DeleteAlias

func (c *WorkMail) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error)

DeleteAlias API operation for Amazon WorkMail.

Remove the alias from a set of aliases for a given user.

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 WorkMail's API operation DeleteAlias for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteAlias

DeleteAliasRequest

func (c *WorkMail) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteAlias

DeleteAliasWithContext

func (c *WorkMail) DeleteAliasWithContext(ctx aws.Context, input *DeleteAliasInput, opts ...request.Option) (*DeleteAliasOutput, error)

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

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

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

See Also

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

DeleteGroup

func (c *WorkMail) DeleteGroup(input *DeleteGroupInput) (*DeleteGroupOutput, error)

DeleteGroup API operation for Amazon WorkMail.

Deletes a group from Amazon WorkMail.

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 WorkMail's API operation DeleteGroup for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" The Directory Service doesn't recognize the credentials supplied by the Amazon WorkMail service.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The directory that you are trying to perform operations on isn't available.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" You can't perform a write operation against a read-only directory.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteGroup

DeleteGroupRequest

func (c *WorkMail) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, output *DeleteGroupOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteGroup

DeleteGroupWithContext

func (c *WorkMail) DeleteGroupWithContext(ctx aws.Context, input *DeleteGroupInput, opts ...request.Option) (*DeleteGroupOutput, error)

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

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

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

See Also

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

DeleteMailboxPermissions

func (c *WorkMail) DeleteMailboxPermissions(input *DeleteMailboxPermissionsInput) (*DeleteMailboxPermissionsOutput, error)

DeleteMailboxPermissions API operation for Amazon WorkMail.

Deletes permissions granted to a user or group.

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 WorkMail's API operation DeleteMailboxPermissions for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteMailboxPermissions

DeleteMailboxPermissionsRequest

func (c *WorkMail) DeleteMailboxPermissionsRequest(input *DeleteMailboxPermissionsInput) (req *request.Request, output *DeleteMailboxPermissionsOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteMailboxPermissions

DeleteMailboxPermissionsWithContext

func (c *WorkMail) DeleteMailboxPermissionsWithContext(ctx aws.Context, input *DeleteMailboxPermissionsInput, opts ...request.Option) (*DeleteMailboxPermissionsOutput, error)

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

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

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

See Also

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

DeleteResource

func (c *WorkMail) DeleteResource(input *DeleteResourceInput) (*DeleteResourceOutput, error)

DeleteResource API operation for Amazon WorkMail.

Deletes 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 WorkMail's API operation DeleteResource for usage and error information.

Returned Error Codes:

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteResource

DeleteResourceRequest

func (c *WorkMail) DeleteResourceRequest(input *DeleteResourceInput) (req *request.Request, output *DeleteResourceOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteResource

DeleteResourceWithContext

func (c *WorkMail) DeleteResourceWithContext(ctx aws.Context, input *DeleteResourceInput, opts ...request.Option) (*DeleteResourceOutput, error)

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

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

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

See Also

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

DeleteUser

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

DeleteUser API operation for Amazon WorkMail.

Deletes a user from Amazon WorkMail and all subsequent systems. The action can't be undone. The mailbox is kept as-is for a minimum of 30 days, without any means to restore it.

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 WorkMail's API operation DeleteUser for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" The Directory Service doesn't recognize the credentials supplied by the Amazon WorkMail service.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The directory that you are trying to perform operations on isn't available.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" You can't perform a write operation against a read-only directory.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteUser

DeleteUserRequest

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

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteUser

DeleteUserWithContext

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

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

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

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

See Also

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

DeregisterFromWorkMail

func (c *WorkMail) DeregisterFromWorkMail(input *DeregisterFromWorkMailInput) (*DeregisterFromWorkMailOutput, error)

DeregisterFromWorkMail API operation for Amazon WorkMail.

Mark a user, group, or resource as no longer used in Amazon WorkMail. This action disassociates the mailbox and schedules it for clean-up. Amazon WorkMail keeps mailboxes for 30 days before they are permanently removed. The functionality in the console is Disable.

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 WorkMail's API operation DeregisterFromWorkMail for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeregisterFromWorkMail

DeregisterFromWorkMailRequest

func (c *WorkMail) DeregisterFromWorkMailRequest(input *DeregisterFromWorkMailInput) (req *request.Request, output *DeregisterFromWorkMailOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeregisterFromWorkMail

DeregisterFromWorkMailWithContext

func (c *WorkMail) DeregisterFromWorkMailWithContext(ctx aws.Context, input *DeregisterFromWorkMailInput, opts ...request.Option) (*DeregisterFromWorkMailOutput, error)

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

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

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

See Also

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

DescribeGroup

func (c *WorkMail) DescribeGroup(input *DescribeGroupInput) (*DescribeGroupOutput, error)

DescribeGroup API operation for Amazon WorkMail.

Returns the data available for the group.

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 WorkMail's API operation DescribeGroup for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DescribeGroup

DescribeGroupRequest

func (c *WorkMail) DescribeGroupRequest(input *DescribeGroupInput) (req *request.Request, output *DescribeGroupOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DescribeGroup

DescribeGroupWithContext

func (c *WorkMail) DescribeGroupWithContext(ctx aws.Context, input *DescribeGroupInput, opts ...request.Option) (*DescribeGroupOutput, error)

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

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

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

See Also

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

DescribeOrganization

func (c *WorkMail) DescribeOrganization(input *DescribeOrganizationInput) (*DescribeOrganizationOutput, error)

DescribeOrganization API operation for Amazon WorkMail.

Provides more information regarding a given organization based on its identifier.

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 WorkMail's API operation DescribeOrganization for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DescribeOrganization

DescribeOrganizationRequest

func (c *WorkMail) DescribeOrganizationRequest(input *DescribeOrganizationInput) (req *request.Request, output *DescribeOrganizationOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DescribeOrganization

DescribeOrganizationWithContext

func (c *WorkMail) DescribeOrganizationWithContext(ctx aws.Context, input *DescribeOrganizationInput, opts ...request.Option) (*DescribeOrganizationOutput, error)

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

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

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

See Also

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

DescribeResource

func (c *WorkMail) DescribeResource(input *DescribeResourceInput) (*DescribeResourceOutput, error)

DescribeResource API operation for Amazon WorkMail.

Returns the data available for the 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 WorkMail's API operation DescribeResource for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DescribeResource

DescribeResourceRequest

func (c *WorkMail) DescribeResourceRequest(input *DescribeResourceInput) (req *request.Request, output *DescribeResourceOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DescribeResource

DescribeResourceWithContext

func (c *WorkMail) DescribeResourceWithContext(ctx aws.Context, input *DescribeResourceInput, opts ...request.Option) (*DescribeResourceOutput, error)

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

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

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

See Also

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

DescribeUser

func (c *WorkMail) DescribeUser(input *DescribeUserInput) (*DescribeUserOutput, error)

DescribeUser API operation for Amazon WorkMail.

Provides information regarding the user.

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 WorkMail's API operation DescribeUser for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DescribeUser

DescribeUserRequest

func (c *WorkMail) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DescribeUser

DescribeUserWithContext

func (c *WorkMail) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserOutput, error)

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

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

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

See Also

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

DisassociateDelegateFromResource

func (c *WorkMail) DisassociateDelegateFromResource(input *DisassociateDelegateFromResourceInput) (*DisassociateDelegateFromResourceOutput, error)

DisassociateDelegateFromResource API operation for Amazon WorkMail.

Removes a member from the resource's set of delegates.

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 WorkMail's API operation DisassociateDelegateFromResource for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DisassociateDelegateFromResource

DisassociateDelegateFromResourceRequest

func (c *WorkMail) DisassociateDelegateFromResourceRequest(input *DisassociateDelegateFromResourceInput) (req *request.Request, output *DisassociateDelegateFromResourceOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DisassociateDelegateFromResource

DisassociateDelegateFromResourceWithContext

func (c *WorkMail) DisassociateDelegateFromResourceWithContext(ctx aws.Context, input *DisassociateDelegateFromResourceInput, opts ...request.Option) (*DisassociateDelegateFromResourceOutput, error)

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

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

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

See Also

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

DisassociateMemberFromGroup

func (c *WorkMail) DisassociateMemberFromGroup(input *DisassociateMemberFromGroupInput) (*DisassociateMemberFromGroupOutput, error)

DisassociateMemberFromGroup API operation for Amazon WorkMail.

Removes a member from a group.

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 WorkMail's API operation DisassociateMemberFromGroup for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" The Directory Service doesn't recognize the credentials supplied by the Amazon WorkMail service.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The directory that you are trying to perform operations on isn't available.

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" You can't perform a write operation against a read-only directory.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DisassociateMemberFromGroup

DisassociateMemberFromGroupRequest

func (c *WorkMail) DisassociateMemberFromGroupRequest(input *DisassociateMemberFromGroupInput) (req *request.Request, output *DisassociateMemberFromGroupOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DisassociateMemberFromGroup

DisassociateMemberFromGroupWithContext

func (c *WorkMail) DisassociateMemberFromGroupWithContext(ctx aws.Context, input *DisassociateMemberFromGroupInput, opts ...request.Option) (*DisassociateMemberFromGroupOutput, error)

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

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

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

See Also

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

ListAliases

func (c *WorkMail) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error)

ListAliases API operation for Amazon WorkMail.

Creates a paginated call to list the aliases associated with a given entity.

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 WorkMail's API operation ListAliases for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListAliases

ListAliasesPages

func (c *WorkMail) ListAliasesPages(input *ListAliasesInput, fn func(*ListAliasesOutput, bool) bool) error

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

See ListAliases 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 ListAliases operation. pageNum := 0 err := client.ListAliasesPages(params, func(page *ListAliasesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

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

ListAliasesPagesWithContext

func (c *WorkMail) ListAliasesPagesWithContext(ctx aws.Context, input *ListAliasesInput, fn func(*ListAliasesOutput, bool) bool, opts ...request.Option) error

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

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

See Also

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

ListAliasesRequest

func (c *WorkMail) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListAliases

ListAliasesWithContext

func (c *WorkMail) ListAliasesWithContext(ctx aws.Context, input *ListAliasesInput, opts ...request.Option) (*ListAliasesOutput, error)

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

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

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

See Also

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

ListGroupMembers

func (c *WorkMail) ListGroupMembers(input *ListGroupMembersInput) (*ListGroupMembersOutput, error)

ListGroupMembers API operation for Amazon WorkMail.

Returns an overview of the members of a group.

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 WorkMail's API operation ListGroupMembers for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListGroupMembers

ListGroupMembersPages

func (c *WorkMail) ListGroupMembersPages(input *ListGroupMembersInput, fn func(*ListGroupMembersOutput, bool) bool) error

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

See ListGroupMembers 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 ListGroupMembers operation. pageNum := 0 err := client.ListGroupMembersPages(params, func(page *ListGroupMembersOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

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

ListGroupMembersPagesWithContext

func (c *WorkMail) ListGroupMembersPagesWithContext(ctx aws.Context, input *ListGroupMembersInput, fn func(*ListGroupMembersOutput, bool) bool, opts ...request.Option) error

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

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

See Also

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

ListGroupMembersRequest

func (c *WorkMail) ListGroupMembersRequest(input *ListGroupMembersInput) (req *request.Request, output *ListGroupMembersOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListGroupMembers

ListGroupMembersWithContext

func (c *WorkMail) ListGroupMembersWithContext(ctx aws.Context, input *ListGroupMembersInput, opts ...request.Option) (*ListGroupMembersOutput, error)

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

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

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

See Also

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

ListGroups

func (c *WorkMail) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error)

ListGroups API operation for Amazon WorkMail.

Returns summaries of the organization's groups.

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 WorkMail's API operation ListGroups for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListGroups

ListGroupsPages

func (c *WorkMail) ListGroupsPages(input *ListGroupsInput, fn func(*ListGroupsOutput, bool) bool) error

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

See ListGroups 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 ListGroups operation. pageNum := 0 err := client.ListGroupsPages(params, func(page *ListGroupsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

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

ListGroupsPagesWithContext

func (c *WorkMail) ListGroupsPagesWithContext(ctx aws.Context, input *ListGroupsInput, fn func(*ListGroupsOutput, bool) bool, opts ...request.Option) error

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

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

See Also

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

ListGroupsRequest

func (c *WorkMail) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, output *ListGroupsOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListGroups

ListGroupsWithContext

func (c *WorkMail) ListGroupsWithContext(ctx aws.Context, input *ListGroupsInput, opts ...request.Option) (*ListGroupsOutput, error)

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

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

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

See Also

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

ListMailboxPermissions

func (c *WorkMail) ListMailboxPermissions(input *ListMailboxPermissionsInput) (*ListMailboxPermissionsOutput, error)

ListMailboxPermissions API operation for Amazon WorkMail.

Lists the mailbox permissions associated with a mailbox.

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 WorkMail's API operation ListMailboxPermissions for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListMailboxPermissions

ListMailboxPermissionsPages

func (c *WorkMail) ListMailboxPermissionsPages(input *ListMailboxPermissionsInput, fn func(*ListMailboxPermissionsOutput, bool) bool) error

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

See ListMailboxPermissions 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 ListMailboxPermissions operation. pageNum := 0 err := client.ListMailboxPermissionsPages(params, func(page *ListMailboxPermissionsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

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

ListMailboxPermissionsPagesWithContext

func (c *WorkMail) ListMailboxPermissionsPagesWithContext(ctx aws.Context, input *ListMailboxPermissionsInput, fn func(*ListMailboxPermissionsOutput, bool) bool, opts ...request.Option) error

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

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

See Also

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

ListMailboxPermissionsRequest

func (c *WorkMail) ListMailboxPermissionsRequest(input *ListMailboxPermissionsInput) (req *request.Request, output *ListMailboxPermissionsOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListMailboxPermissions

ListMailboxPermissionsWithContext

func (c *WorkMail) ListMailboxPermissionsWithContext(ctx aws.Context, input *ListMailboxPermissionsInput, opts ...request.Option) (*ListMailboxPermissionsOutput, error)

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

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

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

See Also

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

ListOrganizations

func (c *WorkMail) ListOrganizations(input *ListOrganizationsInput) (*ListOrganizationsOutput, error)

ListOrganizations API operation for Amazon WorkMail.

Returns summaries of the customer's non-deleted organizations.

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 WorkMail's API operation ListOrganizations for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListOrganizations

ListOrganizationsPages

func (c *WorkMail) ListOrganizationsPages(input *ListOrganizationsInput, fn func(*ListOrganizationsOutput, bool) bool) error

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

See ListOrganizations 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 ListOrganizations operation. pageNum := 0 err := client.ListOrganizationsPages(params, func(page *ListOrganizationsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

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

ListOrganizationsPagesWithContext

func (c *WorkMail) ListOrganizationsPagesWithContext(ctx aws.Context, input *ListOrganizationsInput, fn func(*ListOrganizationsOutput, bool) bool, opts ...request.Option) error

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

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

See Also

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

ListOrganizationsRequest

func (c *WorkMail) ListOrganizationsRequest(input *ListOrganizationsInput) (req *request.Request, output *ListOrganizationsOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListOrganizations

ListOrganizationsWithContext

func (c *WorkMail) ListOrganizationsWithContext(ctx aws.Context, input *ListOrganizationsInput, opts ...request.Option) (*ListOrganizationsOutput, error)

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

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

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

See Also

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

ListResourceDelegates

func (c *WorkMail) ListResourceDelegates(input *ListResourceDelegatesInput) (*ListResourceDelegatesOutput, error)

ListResourceDelegates API operation for Amazon WorkMail.

Lists the delegates associated with a resource. Users and groups can be resource delegates and answer requests on behalf of the 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 WorkMail's API operation ListResourceDelegates for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListResourceDelegates

ListResourceDelegatesRequest

func (c *WorkMail) ListResourceDelegatesRequest(input *ListResourceDelegatesInput) (req *request.Request, output *ListResourceDelegatesOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListResourceDelegates

ListResourceDelegatesWithContext

func (c *WorkMail) ListResourceDelegatesWithContext(ctx aws.Context, input *ListResourceDelegatesInput, opts ...request.Option) (*ListResourceDelegatesOutput, error)

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

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

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

See Also

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

ListResources

func (c *WorkMail) ListResources(input *ListResourcesInput) (*ListResourcesOutput, error)

ListResources API operation for Amazon WorkMail.

Returns summaries of the organization's resources.

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 WorkMail's API operation ListResources for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListResources

ListResourcesPages

func (c *WorkMail) ListResourcesPages(input *ListResourcesInput, fn func(*ListResourcesOutput, bool) bool) error

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

See ListResources 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 ListResources operation. pageNum := 0 err := client.ListResourcesPages(params, func(page *ListResourcesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

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

ListResourcesPagesWithContext

func (c *WorkMail) ListResourcesPagesWithContext(ctx aws.Context, input *ListResourcesInput, fn func(*ListResourcesOutput, bool) bool, opts ...request.Option) error

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

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

See Also

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

ListResourcesRequest

func (c *WorkMail) ListResourcesRequest(input *ListResourcesInput) (req *request.Request, output *ListResourcesOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListResources

ListResourcesWithContext

func (c *WorkMail) ListResourcesWithContext(ctx aws.Context, input *ListResourcesInput, opts ...request.Option) (*ListResourcesOutput, error)

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

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

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

See Also

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

ListUsers

func (c *WorkMail) ListUsers(input *ListUsersInput) (*ListUsersOutput, error)

ListUsers API operation for Amazon WorkMail.

Returns summaries of the organization's users.

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 WorkMail's API operation ListUsers for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListUsers

ListUsersPages

func (c *WorkMail) ListUsersPages(input *ListUsersInput, fn func(*ListUsersOutput, bool) bool) error

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

See ListUsers 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 ListUsers operation. pageNum := 0 err := client.ListUsersPages(params, func(page *ListUsersOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

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

ListUsersPagesWithContext

func (c *WorkMail) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInput, fn func(*ListUsersOutput, bool) bool, opts ...request.Option) error

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

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

See Also

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

ListUsersRequest

func (c *WorkMail) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListUsers

ListUsersWithContext

func (c *WorkMail) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error)

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

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

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

See Also

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

PutMailboxPermissions

func (c *WorkMail) PutMailboxPermissions(input *PutMailboxPermissionsInput) (*PutMailboxPermissionsOutput, error)

PutMailboxPermissions API operation for Amazon WorkMail.

Sets permissions for a user or group. This replaces any pre-existing permissions set for the entity.

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 WorkMail's API operation PutMailboxPermissions for usage and error information.

Returned Error Codes:

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/PutMailboxPermissions

PutMailboxPermissionsRequest

func (c *WorkMail) PutMailboxPermissionsRequest(input *PutMailboxPermissionsInput) (req *request.Request, output *PutMailboxPermissionsOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/PutMailboxPermissions

PutMailboxPermissionsWithContext

func (c *WorkMail) PutMailboxPermissionsWithContext(ctx aws.Context, input *PutMailboxPermissionsInput, opts ...request.Option) (*PutMailboxPermissionsOutput, error)

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

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

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

See Also

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

RegisterToWorkMail

func (c *WorkMail) RegisterToWorkMail(input *RegisterToWorkMailInput) (*RegisterToWorkMailOutput, error)

RegisterToWorkMail API operation for Amazon WorkMail.

Registers an existing and disabled user, group, or resource/entity for Amazon WorkMail use by associating a mailbox and calendaring capabilities. It performs no change if the entity is enabled and fails if the entity is deleted. This operation results in the accumulation of costs. For more information, see Pricing (https://aws.amazon.com/workmail/pricing). The equivalent console functionality for this operation is Enable. Users can either be created by calling the CreateUser API or they can be synchronized from your directory. For more information, see DeregisterFromWorkMail.

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 WorkMail's API operation RegisterToWorkMail for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" The Directory Service doesn't recognize the credentials supplied by the Amazon WorkMail service.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The directory that you are trying to perform operations on isn't available.

  • ErrCodeEmailAddressInUseException "EmailAddressInUseException" The email address that you're trying to assign is already created for a different user, group, or resource.

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeEntityAlreadyRegisteredException "EntityAlreadyRegisteredException" The user, group, or resource that you're trying to register is already registered.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeMailDomainNotFoundException "MailDomainNotFoundException" For an email or alias to be created in Amazon WorkMail, the included domain must be defined in the organization.

  • ErrCodeMailDomainStateException "MailDomainStateException" After a domain has been added to the organization, it must be verified. The domain is not yet verified.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/RegisterToWorkMail

RegisterToWorkMailRequest

func (c *WorkMail) RegisterToWorkMailRequest(input *RegisterToWorkMailInput) (req *request.Request, output *RegisterToWorkMailOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/RegisterToWorkMail

RegisterToWorkMailWithContext

func (c *WorkMail) RegisterToWorkMailWithContext(ctx aws.Context, input *RegisterToWorkMailInput, opts ...request.Option) (*RegisterToWorkMailOutput, error)

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

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

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

See Also

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

ResetPassword

func (c *WorkMail) ResetPassword(input *ResetPasswordInput) (*ResetPasswordOutput, error)

ResetPassword API operation for Amazon WorkMail.

Allows the administrator to reset the password for a user.

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 WorkMail's API operation ResetPassword for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" The Directory Service doesn't recognize the credentials supplied by the Amazon WorkMail service.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The directory that you are trying to perform operations on isn't available.

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeInvalidPasswordException "InvalidPasswordException" The supplied password doesn't match the minimum security constraints, such as length or use of special characters.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" You can't perform a write operation against a read-only directory.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ResetPassword

ResetPasswordRequest

func (c *WorkMail) ResetPasswordRequest(input *ResetPasswordInput) (req *request.Request, output *ResetPasswordOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ResetPassword

ResetPasswordWithContext

func (c *WorkMail) ResetPasswordWithContext(ctx aws.Context, input *ResetPasswordInput, opts ...request.Option) (*ResetPasswordOutput, error)

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

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

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

See Also

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

UpdatePrimaryEmailAddress

func (c *WorkMail) UpdatePrimaryEmailAddress(input *UpdatePrimaryEmailAddressInput) (*UpdatePrimaryEmailAddressOutput, error)

UpdatePrimaryEmailAddress API operation for Amazon WorkMail.

Updates the primary email for an entity. The current email is moved into the list of aliases (or swapped between an existing alias and the current primary email) and the email provided in the input is promoted as the primary.

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 WorkMail's API operation UpdatePrimaryEmailAddress for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" The Directory Service doesn't recognize the credentials supplied by the Amazon WorkMail service.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The directory that you are trying to perform operations on isn't available.

  • ErrCodeEmailAddressInUseException "EmailAddressInUseException" The email address that you're trying to assign is already created for a different user, group, or resource.

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeMailDomainNotFoundException "MailDomainNotFoundException" For an email or alias to be created in Amazon WorkMail, the included domain must be defined in the organization.

  • ErrCodeMailDomainStateException "MailDomainStateException" After a domain has been added to the organization, it must be verified. The domain is not yet verified.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more of the input parameters don't match the service's restrictions.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" You can't perform a write operation against a read-only directory.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UpdatePrimaryEmailAddress

UpdatePrimaryEmailAddressRequest

func (c *WorkMail) UpdatePrimaryEmailAddressRequest(input *UpdatePrimaryEmailAddressInput) (req *request.Request, output *UpdatePrimaryEmailAddressOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UpdatePrimaryEmailAddress

UpdatePrimaryEmailAddressWithContext

func (c *WorkMail) UpdatePrimaryEmailAddressWithContext(ctx aws.Context, input *UpdatePrimaryEmailAddressInput, opts ...request.Option) (*UpdatePrimaryEmailAddressOutput, error)

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

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

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

See Also

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

UpdateResource

func (c *WorkMail) UpdateResource(input *UpdateResourceInput) (*UpdateResourceOutput, error)

UpdateResource API operation for Amazon WorkMail.

Updates data for the resource. It must be preceded by a describe call in order to have the latest information. The dataset in the request should be the one expected when performing another describe call.

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 WorkMail's API operation UpdateResource for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The directory that you are trying to perform operations on isn't available.

  • ErrCodeEntityNotFoundException "EntityNotFoundException" The identifier supplied for the entity is valid, but it does not exist in your organization.

  • ErrCodeEntityStateException "EntityStateException" You are performing an operation on an entity that isn't in the expected state, such as trying to update a deleted user.

  • ErrCodeInvalidConfigurationException "InvalidConfigurationException" The configuration for a resource isn't valid. A resource must either be able to auto-respond to requests or have at least one delegate associated that can do it on its behalf.

  • ErrCodeEmailAddressInUseException "EmailAddressInUseException" The email address that you're trying to assign is already created for a different user, group, or resource.

  • ErrCodeMailDomainNotFoundException "MailDomainNotFoundException" For an email or alias to be created in Amazon WorkMail, the included domain must be defined in the organization.

  • ErrCodeMailDomainStateException "MailDomainStateException" After a domain has been added to the organization, it must be verified. The domain is not yet verified.

  • ErrCodeNameAvailabilityException "NameAvailabilityException" The entity (user, group, or user) name isn't unique in Amazon WorkMail.

  • ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" An operation received a valid organization identifier that either doesn't belong or exist in the system.

  • ErrCodeOrganizationStateException "OrganizationStateException" The organization must have a valid state (Active or Synchronizing) to perform certain operations on the organization or its entities.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UpdateResource

UpdateResourceRequest

func (c *WorkMail) UpdateResourceRequest(input *UpdateResourceInput) (req *request.Request, output *UpdateResourceOutput)

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

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

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

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

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UpdateResource

UpdateResourceWithContext

func (c *WorkMail) UpdateResourceWithContext(ctx aws.Context, input *UpdateResourceInput, opts ...request.Option) (*UpdateResourceOutput, error)

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

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

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

See Also

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

On this page: