We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.WorkMail

Inherits:
AWS.Service show all
Identifier:
workmail
API Version:
2017-10-01
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

WorkMail is a secure, managed business email and calendaring service with support for existing desktop and mobile email clients. You can access your email, contacts, and calendars using Microsoft Outlook, your browser, or other native iOS and Android email applications. You can integrate WorkMail with your existing corporate directory and control both the keys that encrypt your data and the location in which your data is stored.

The WorkMail API is designed for the following scenarios:

  • Listing and describing organizations

  • Managing users

  • Managing groups

  • Managing resources

All WorkMail API operations are Amazon-authenticated and certificate-signed. They not only require the use of the AWS SDK, but also allow for the exclusive use of AWS Identity and Access Management users and roles to help facilitate access, trust, and permission policies. By creating a role and allowing an IAM user to access the WorkMail site, the IAM user gains full administrative visibility into the entire WorkMail organization (or as set in the IAM policy). This includes, but is not limited to, the ability to create, update, and delete users, groups, and resources. This allows developers to perform the scenarios listed above, as well as give users the ability to grant access on a selective basis using the IAM model.

Sending a Request Using WorkMail

var workmail = new AWS.WorkMail();
workmail.associateDelegateToResource(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the WorkMail object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var workmail = new AWS.WorkMail({apiVersion: '2017-10-01'});

You can also set the API version globally in AWS.config.apiVersions using the workmail service identifier:

AWS.config.apiVersions = {
  workmail: '2017-10-01',
  // other service API versions
};

var workmail = new AWS.WorkMail();

Version:

  • 2017-10-01

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.WorkMail(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a WorkMail object

var workmail = new AWS.WorkMail({apiVersion: '2017-10-01'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.WorkMail.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.WorkMail.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.WorkMail.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

associateDelegateToResource(params = {}, callback) ⇒ AWS.Request

Adds a member (user or group) to the resource's set of delegates.

Service Reference:

Examples:

Calling the associateDelegateToResource operation

var params = {
  EntityId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  ResourceId: 'STRING_VALUE' /* required */
};
workmail.associateDelegateToResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The organization under which the resource exists.

    • ResourceId — (String)

      The resource for which members (users or groups) are associated.

      The identifier can accept ResourceId, Resourcename, or email. The following identity formats are available:

      • Resource ID: r-0123456789a0123456789b0123456789

      • Email address: resource@domain.tld

      • Resource name: resource

    • EntityId — (String)

      The member (user or group) to associate to the resource.

      The entity ID can accept UserId or GroupID, Username or Groupname, or email.

      • Entity: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: entity@domain.tld

      • Entity: entity

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

associateMemberToGroup(params = {}, callback) ⇒ AWS.Request

Adds a member (user or group) to the group's set.

Service Reference:

Examples:

Calling the associateMemberToGroup operation

var params = {
  GroupId: 'STRING_VALUE', /* required */
  MemberId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.associateMemberToGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The organization under which the group exists.

    • GroupId — (String)

      The group to which the member (user or group) is associated.

      The identifier can accept GroupId, Groupname, or email. The following identity formats are available:

      • Group ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: group@domain.tld

      • Group name: group

    • MemberId — (String)

      The member (user or group) to associate to the group.

      The member ID can accept UserID or GroupId, Username or Groupname, or email.

      • Member: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: member@domain.tld

      • Member name: member

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

assumeImpersonationRole(params = {}, callback) ⇒ AWS.Request

Assumes an impersonation role for the given WorkMail organization. This method returns an authentication token you can use to make impersonated calls.

Service Reference:

Examples:

Calling the assumeImpersonationRole operation

var params = {
  ImpersonationRoleId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.assumeImpersonationRole(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization under which the impersonation role will be assumed.

    • ImpersonationRoleId — (String)

      The impersonation role ID to assume.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Token — (String)

        The authentication token for the impersonation role.

      • ExpiresIn — (Integer)

        The authentication token's validity, in seconds.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

cancelMailboxExportJob(params = {}, callback) ⇒ AWS.Request

Cancels a mailbox export job.

Note: If the mailbox export job is near completion, it might not be possible to cancel it.

Service Reference:

Examples:

Calling the cancelMailboxExportJob operation

var params = {
  ClientToken: 'STRING_VALUE', /* required */
  JobId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.cancelMailboxExportJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ClientToken — (String)

      The idempotency token for the client request.

      If a token is not provided, the SDK will use a version 4 UUID.
    • JobId — (String)

      The job ID.

    • OrganizationId — (String)

      The organization ID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createAlias(params = {}, callback) ⇒ AWS.Request

Adds an alias to the set of a given member (user or group) of WorkMail.

Service Reference:

Examples:

Calling the createAlias operation

var params = {
  Alias: 'STRING_VALUE', /* required */
  EntityId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.createAlias(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The organization under which the member (user or group) exists.

    • EntityId — (String)

      The member (user or group) to which this alias is added.

    • Alias — (String)

      The alias to add to the member set.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createAvailabilityConfiguration(params = {}, callback) ⇒ AWS.Request

Creates an AvailabilityConfiguration for the given WorkMail organization and domain.

Service Reference:

Examples:

Calling the createAvailabilityConfiguration operation

var params = {
  DomainName: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  EwsProvider: {
    EwsEndpoint: 'STRING_VALUE', /* required */
    EwsPassword: 'STRING_VALUE', /* required */
    EwsUsername: 'STRING_VALUE' /* required */
  },
  LambdaProvider: {
    LambdaArn: 'STRING_VALUE' /* required */
  }
};
workmail.createAvailabilityConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ClientToken — (String)

      An idempotent token that ensures that an API request is executed only once.

      If a token is not provided, the SDK will use a version 4 UUID.
    • OrganizationId — (String)

      The WorkMail organization for which the AvailabilityConfiguration will be created.

    • DomainName — (String)

      The domain to which the provider applies.

    • EwsProvider — (map)

      Exchange Web Services (EWS) availability provider definition. The request must contain exactly one provider definition, either EwsProvider or LambdaProvider.

      • EwsEndpointrequired — (String)

        The endpoint of the remote EWS server.

      • EwsUsernamerequired — (String)

        The username used to authenticate the remote EWS server.

      • EwsPasswordrequired — (String)

        The password used to authenticate the remote EWS server.

    • LambdaProvider — (map)

      Lambda availability provider definition. The request must contain exactly one provider definition, either EwsProvider or LambdaProvider.

      • LambdaArnrequired — (String)

        The Amazon Resource Name (ARN) of the Lambda that acts as the availability provider.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createGroup(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the createGroup operation

var params = {
  Name: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  HiddenFromGlobalAddressList: true || false
};
workmail.createGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The organization under which the group is to be created.

    • Name — (String)

      The name of the group.

    • HiddenFromGlobalAddressList — (Boolean)

      If this parameter is enabled, the group will be hidden from the address book.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • GroupId — (String)

        The identifier of the group.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createImpersonationRole(params = {}, callback) ⇒ AWS.Request

Creates an impersonation role for the given WorkMail organization.

Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries also complete successfully without performing any further actions.

Service Reference:

Examples:

Calling the createImpersonationRole operation

var params = {
  Name: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  Rules: [ /* required */
    {
      Effect: ALLOW | DENY, /* required */
      ImpersonationRuleId: 'STRING_VALUE', /* required */
      Description: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      NotTargetUsers: [
        'STRING_VALUE',
        /* more items */
      ],
      TargetUsers: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  Type: FULL_ACCESS | READ_ONLY, /* required */
  ClientToken: 'STRING_VALUE',
  Description: 'STRING_VALUE'
};
workmail.createImpersonationRole(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ClientToken — (String)

      The idempotency token for the client request.

      If a token is not provided, the SDK will use a version 4 UUID.
    • OrganizationId — (String)

      The WorkMail organization to create the new impersonation role within.

    • Name — (String)

      The name of the new impersonation role.

    • Type — (String)

      The impersonation role's type. The available impersonation role types are READ_ONLY or FULL_ACCESS.

      Possible values include:
      • "FULL_ACCESS"
      • "READ_ONLY"
    • Description — (String)

      The description of the new impersonation role.

    • Rules — (Array<map>)

      The list of rules for the impersonation role.

      • ImpersonationRuleIdrequired — (String)

        The identifier of the rule.

      • Name — (String)

        The rule name.

      • Description — (String)

        The rule description.

      • Effectrequired — (String)

        The effect of the rule when it matches the input. Allowed effect values are ALLOW or DENY.

        Possible values include:
        • "ALLOW"
        • "DENY"
      • TargetUsers — (Array<String>)

        A list of user IDs that match the rule.

      • NotTargetUsers — (Array<String>)

        A list of user IDs that don't match the rule.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ImpersonationRoleId — (String)

        The new impersonation role ID.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createMobileDeviceAccessRule(params = {}, callback) ⇒ AWS.Request

Creates a new mobile device access rule for the specified WorkMail organization.

Service Reference:

Examples:

Calling the createMobileDeviceAccessRule operation

var params = {
  Effect: ALLOW | DENY, /* required */
  Name: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  Description: 'STRING_VALUE',
  DeviceModels: [
    'STRING_VALUE',
    /* more items */
  ],
  DeviceOperatingSystems: [
    'STRING_VALUE',
    /* more items */
  ],
  DeviceTypes: [
    'STRING_VALUE',
    /* more items */
  ],
  DeviceUserAgents: [
    'STRING_VALUE',
    /* more items */
  ],
  NotDeviceModels: [
    'STRING_VALUE',
    /* more items */
  ],
  NotDeviceOperatingSystems: [
    'STRING_VALUE',
    /* more items */
  ],
  NotDeviceTypes: [
    'STRING_VALUE',
    /* more items */
  ],
  NotDeviceUserAgents: [
    'STRING_VALUE',
    /* more items */
  ]
};
workmail.createMobileDeviceAccessRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization under which the rule will be created.

    • ClientToken — (String)

      The idempotency token for the client request.

      If a token is not provided, the SDK will use a version 4 UUID.
    • Name — (String)

      The rule name.

    • Description — (String)

      The rule description.

    • Effect — (String)

      The effect of the rule when it matches. Allowed values are ALLOW or DENY.

      Possible values include:
      • "ALLOW"
      • "DENY"
    • DeviceTypes — (Array<String>)

      Device types that the rule will match.

    • NotDeviceTypes — (Array<String>)

      Device types that the rule will not match. All other device types will match.

    • DeviceModels — (Array<String>)

      Device models that the rule will match.

    • NotDeviceModels — (Array<String>)

      Device models that the rule will not match. All other device models will match.

    • DeviceOperatingSystems — (Array<String>)

      Device operating systems that the rule will match.

    • NotDeviceOperatingSystems — (Array<String>)

      Device operating systems that the rule will not match. All other device operating systems will match.

    • DeviceUserAgents — (Array<String>)

      Device user agents that the rule will match.

    • NotDeviceUserAgents — (Array<String>)

      Device user agents that the rule will not match. All other device user agents will match.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • MobileDeviceAccessRuleId — (String)

        The identifier for the newly created mobile device access rule.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createOrganization(params = {}, callback) ⇒ AWS.Request

Creates a new WorkMail organization. Optionally, you can choose to associate an existing AWS Directory Service directory with your organization. If an AWS Directory Service directory ID is specified, the organization alias must match the directory alias. If you choose not to associate an existing directory with your organization, then we create a new WorkMail directory for you. For more information, see Adding an organization in the WorkMail Administrator Guide.

You can associate multiple email domains with an organization, then choose your default email domain from the WorkMail console. You can also associate a domain that is managed in an Amazon Route 53 public hosted zone. For more information, see Adding a domain and Choosing the default domain in the WorkMail Administrator Guide.

Optionally, you can use a customer managed key from AWS Key Management Service (AWS KMS) to encrypt email for your organization. If you don't associate an AWS KMS key, WorkMail creates a default, AWS managed key for you.

Service Reference:

Examples:

Calling the createOrganization operation

var params = {
  Alias: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  DirectoryId: 'STRING_VALUE',
  Domains: [
    {
      DomainName: 'STRING_VALUE', /* required */
      HostedZoneId: 'STRING_VALUE'
    },
    /* more items */
  ],
  EnableInteroperability: true || false,
  KmsKeyArn: 'STRING_VALUE'
};
workmail.createOrganization(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The AWS Directory Service directory ID.

    • Alias — (String)

      The organization alias.

    • ClientToken — (String)

      The idempotency token associated with the request.

      If a token is not provided, the SDK will use a version 4 UUID.
    • Domains — (Array<map>)

      The email domains to associate with the organization.

      • DomainNamerequired — (String)

        The fully qualified domain name.

      • HostedZoneId — (String)

        The hosted zone ID for a domain hosted in Route 53. Required when configuring a domain hosted in Route 53.

    • KmsKeyArn — (String)

      The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.

    • EnableInteroperability — (Boolean)

      When true, allows organization interoperability between WorkMail and Microsoft Exchange. If true, you must include a AD Connector directory ID in the request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OrganizationId — (String)

        The organization ID.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createResource(params = {}, callback) ⇒ AWS.Request

Creates a new WorkMail resource.

Service Reference:

Examples:

Calling the createResource operation

var params = {
  Name: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  Type: ROOM | EQUIPMENT, /* required */
  Description: 'STRING_VALUE',
  HiddenFromGlobalAddressList: true || false
};
workmail.createResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier associated with the organization for which the resource is created.

    • Name — (String)

      The name of the new resource.

    • Type — (String)

      The type of the new resource. The available types are equipment and room.

      Possible values include:
      • "ROOM"
      • "EQUIPMENT"
    • Description — (String)

      Resource description.

    • HiddenFromGlobalAddressList — (Boolean)

      If this parameter is enabled, the resource will be hidden from the address book.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResourceId — (String)

        The identifier of the new resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createUser(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the createUser operation

var params = {
  DisplayName: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  FirstName: 'STRING_VALUE',
  HiddenFromGlobalAddressList: true || false,
  LastName: 'STRING_VALUE',
  Password: 'STRING_VALUE',
  Role: USER | RESOURCE | SYSTEM_USER | REMOTE_USER
};
workmail.createUser(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier of the organization for which the user is created.

    • Name — (String)

      The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.

    • DisplayName — (String)

      The display name for the new user.

    • Password — (String)

      The password for the new user.

    • Role — (String)

      The role of the new user.

      You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected.

      Possible values include:
      • "USER"
      • "RESOURCE"
      • "SYSTEM_USER"
      • "REMOTE_USER"
    • FirstName — (String)

      The first name of the new user.

    • LastName — (String)

      The last name of the new user.

    • HiddenFromGlobalAddressList — (Boolean)

      If this parameter is enabled, the user will be hidden from the address book.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • UserId — (String)

        The identifier for the new user.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteAccessControlRule(params = {}, callback) ⇒ AWS.Request

Deletes an access control rule for the specified WorkMail organization.

Note: Deleting already deleted and non-existing rules does not produce an error. In those cases, the service sends back an HTTP 200 response with an empty HTTP body.

Service Reference:

Examples:

Calling the deleteAccessControlRule operation

var params = {
  Name: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.deleteAccessControlRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization.

    • Name — (String)

      The name of the access control rule.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteAlias(params = {}, callback) ⇒ AWS.Request

Remove one or more specified aliases from a set of aliases for a given user.

Service Reference:

Examples:

Calling the deleteAlias operation

var params = {
  Alias: 'STRING_VALUE', /* required */
  EntityId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.deleteAlias(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the user exists.

    • EntityId — (String)

      The identifier for the member (user or group) from which to have the aliases removed.

    • Alias — (String)

      The aliases to be removed from the user's set of aliases. Duplicate entries in the list are collapsed into single entries (the list is transformed into a set).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteAvailabilityConfiguration(params = {}, callback) ⇒ AWS.Request

Deletes the AvailabilityConfiguration for the given WorkMail organization and domain.

Service Reference:

Examples:

Calling the deleteAvailabilityConfiguration operation

var params = {
  DomainName: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.deleteAvailabilityConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization for which the AvailabilityConfiguration will be deleted.

    • DomainName — (String)

      The domain for which the AvailabilityConfiguration will be deleted.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteEmailMonitoringConfiguration(params = {}, callback) ⇒ AWS.Request

Deletes the email monitoring configuration for a specified organization.

Examples:

Calling the deleteEmailMonitoringConfiguration operation

var params = {
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.deleteEmailMonitoringConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The ID of the organization from which the email monitoring configuration is deleted.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteGroup(params = {}, callback) ⇒ AWS.Request

Deletes a group from WorkMail.

Service Reference:

Examples:

Calling the deleteGroup operation

var params = {
  GroupId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.deleteGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The organization that contains the group.

    • GroupId — (String)

      The identifier of the group to be deleted.

      The identifier can be the GroupId, or Groupname. The following identity formats are available:

      • Group ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Group name: group

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteImpersonationRole(params = {}, callback) ⇒ AWS.Request

Deletes an impersonation role for the given WorkMail organization.

Service Reference:

Examples:

Calling the deleteImpersonationRole operation

var params = {
  ImpersonationRoleId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.deleteImpersonationRole(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization from which to delete the impersonation role.

    • ImpersonationRoleId — (String)

      The ID of the impersonation role to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteMailboxPermissions(params = {}, callback) ⇒ AWS.Request

Deletes permissions granted to a member (user or group).

Service Reference:

Examples:

Calling the deleteMailboxPermissions operation

var params = {
  EntityId: 'STRING_VALUE', /* required */
  GranteeId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.deleteMailboxPermissions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier of the organization under which the member (user or group) exists.

    • EntityId — (String)

      The identifier of the entity that owns the mailbox.

      The identifier can be UserId or Group Id, Username or Groupname, or email.

      • Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: entity@domain.tld

      • Entity name: entity

    • GranteeId — (String)

      The identifier of the entity for which to delete granted permissions.

      The identifier can be UserId, ResourceID, or Group Id, Username or Groupname, or email.

      • Grantee ID: 12345678-1234-1234-1234-123456789012,r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: grantee@domain.tld

      • Grantee name: grantee

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteMobileDeviceAccessOverride(params = {}, callback) ⇒ AWS.Request

Deletes the mobile device access override for the given WorkMail organization, user, and device.

Note: Deleting already deleted and non-existing overrides does not produce an error. In those cases, the service sends back an HTTP 200 response with an empty HTTP body.

Examples:

Calling the deleteMobileDeviceAccessOverride operation

var params = {
  DeviceId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE' /* required */
};
workmail.deleteMobileDeviceAccessOverride(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization for which the access override will be deleted.

    • UserId — (String)

      The WorkMail user for which you want to delete the override. Accepts the following types of user identities:

      • User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: user@domain.tld

      • User name: user

    • DeviceId — (String)

      The mobile device for which you delete the override. DeviceId is case insensitive.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteMobileDeviceAccessRule(params = {}, callback) ⇒ AWS.Request

Deletes a mobile device access rule for the specified WorkMail organization.

Note: Deleting already deleted and non-existing rules does not produce an error. In those cases, the service sends back an HTTP 200 response with an empty HTTP body.

Service Reference:

Examples:

Calling the deleteMobileDeviceAccessRule operation

var params = {
  MobileDeviceAccessRuleId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.deleteMobileDeviceAccessRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization under which the rule will be deleted.

    • MobileDeviceAccessRuleId — (String)

      The identifier of the rule to be deleted.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteOrganization(params = {}, callback) ⇒ AWS.Request

Deletes an WorkMail organization and all underlying AWS resources managed by WorkMail as part of the organization. You can choose whether to delete the associated directory. For more information, see Removing an organization in the WorkMail Administrator Guide.

Service Reference:

Examples:

Calling the deleteOrganization operation

var params = {
  DeleteDirectory: true || false, /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  ForceDelete: true || false
};
workmail.deleteOrganization(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ClientToken — (String)

      The idempotency token associated with the request.

      If a token is not provided, the SDK will use a version 4 UUID.
    • OrganizationId — (String)

      The organization ID.

    • DeleteDirectory — (Boolean)

      If true, deletes the AWS Directory Service directory associated with the organization.

    • ForceDelete — (Boolean)

      Deletes a WorkMail organization even if the organization has enabled users.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OrganizationId — (String)

        The organization ID.

      • State — (String)

        The state of the organization.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteResource(params = {}, callback) ⇒ AWS.Request

Deletes the specified resource.

Service Reference:

Examples:

Calling the deleteResource operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  ResourceId: 'STRING_VALUE' /* required */
};
workmail.deleteResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier associated with the organization from which the resource is deleted.

    • ResourceId — (String)

      The identifier of the resource to be deleted.

      The identifier can accept ResourceId, or Resourcename. The following identity formats are available:

      • Resource ID: r-0123456789a0123456789b0123456789

      • Resource name: resource

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteRetentionPolicy(params = {}, callback) ⇒ AWS.Request

Deletes the specified retention policy from the specified organization.

Service Reference:

Examples:

Calling the deleteRetentionPolicy operation

var params = {
  Id: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.deleteRetentionPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The organization ID.

    • Id — (String)

      The retention policy ID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteUser(params = {}, callback) ⇒ AWS.Request

Deletes a user from WorkMail and all subsequent systems. Before you can delete a user, the user state must be DISABLED. Use the DescribeUser action to confirm the user state.

Deleting a user is permanent and cannot be undone. WorkMail archives user mailboxes for 30 days before they are permanently removed.

Service Reference:

Examples:

Calling the deleteUser operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE' /* required */
};
workmail.deleteUser(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The organization that contains the user to be deleted.

    • UserId — (String)

      The identifier of the user to be deleted.

      The identifier can be the UserId or Username. The following identity formats are available:

      • User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • User name: user

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deregisterFromWorkMail(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the deregisterFromWorkMail operation

var params = {
  EntityId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.deregisterFromWorkMail(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the WorkMail entity exists.

    • EntityId — (String)

      The identifier for the member to be updated.

      The identifier can be UserId, ResourceId, or Group Id, Username, Resourcename, or Groupname, or email.

      • Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: entity@domain.tld

      • Entity name: entity

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deregisterMailDomain(params = {}, callback) ⇒ AWS.Request

Removes a domain from WorkMail, stops email routing to WorkMail, and removes the authorization allowing WorkMail use. SES keeps the domain because other applications may use it. You must first remove any email address used by WorkMail entities before you remove the domain.

Service Reference:

Examples:

Calling the deregisterMailDomain operation

var params = {
  DomainName: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.deregisterMailDomain(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization for which the domain will be deregistered.

    • DomainName — (String)

      The domain to deregister in WorkMail and SES.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeEmailMonitoringConfiguration(params = {}, callback) ⇒ AWS.Request

Describes the current email monitoring configuration for a specified organization.

Examples:

Calling the describeEmailMonitoringConfiguration operation

var params = {
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.describeEmailMonitoringConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The ID of the organization for which the email monitoring configuration is described.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • RoleArn — (String)

        The Amazon Resource Name (ARN) of the IAM Role associated with the email monitoring configuration.

      • LogGroupArn — (String)

        The Amazon Resource Name (ARN) of the CloudWatch Log group associated with the email monitoring configuration.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeEntity(params = {}, callback) ⇒ AWS.Request

Returns basic details about an entity in WorkMail.

Service Reference:

Examples:

Calling the describeEntity operation

var params = {
  Email: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.describeEntity(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the entity exists.

    • Email — (String)

      The email under which the entity exists.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EntityId — (String)

        The entity ID under which the entity exists.

      • Name — (String)

        Username, GroupName, or ResourceName based on entity type.

      • Type — (String)

        Entity type.

        Possible values include:
        • "GROUP"
        • "USER"
        • "RESOURCE"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeGroup(params = {}, callback) ⇒ AWS.Request

Returns the data available for the group.

Service Reference:

Examples:

Calling the describeGroup operation

var params = {
  GroupId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.describeGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the group exists.

    • GroupId — (String)

      The identifier for the group to be described.

      The identifier can accept GroupId, Groupname, or email. The following identity formats are available:

      • Group ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: group@domain.tld

      • Group name: group

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • GroupId — (String)

        The identifier of the described group.

      • Name — (String)

        The name of the described group.

      • Email — (String)

        The email of the described group.

      • State — (String)

        The state of the user: enabled (registered to WorkMail) or disabled (deregistered or never registered to WorkMail).

        Possible values include:
        • "ENABLED"
        • "DISABLED"
        • "DELETED"
      • EnabledDate — (Date)

        The date and time when a user was registered to WorkMail, in UNIX epoch time format.

      • DisabledDate — (Date)

        The date and time when a user was deregistered from WorkMail, in UNIX epoch time format.

      • HiddenFromGlobalAddressList — (Boolean)

        If the value is set to true, the group is hidden from the address book.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeInboundDmarcSettings(params = {}, callback) ⇒ AWS.Request

Lists the settings in a DMARC policy for a specified organization.

Service Reference:

Examples:

Calling the describeInboundDmarcSettings operation

var params = {
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.describeInboundDmarcSettings(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      Lists the ID of the given organization.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Enforced — (Boolean)

        Lists the enforcement setting of the applied policy.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeMailboxExportJob(params = {}, callback) ⇒ AWS.Request

Describes the current status of a mailbox export job.

Service Reference:

Examples:

Calling the describeMailboxExportJob operation

var params = {
  JobId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.describeMailboxExportJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • JobId — (String)

      The mailbox export job ID.

    • OrganizationId — (String)

      The organization ID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EntityId — (String)

        The identifier of the user or resource associated with the mailbox.

      • Description — (String)

        The mailbox export job description.

      • RoleArn — (String)

        The ARN of the AWS Identity and Access Management (IAM) role that grants write permission to the Amazon Simple Storage Service (Amazon S3) bucket.

      • KmsKeyArn — (String)

        The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service (AWS KMS) key that encrypts the exported mailbox content.

      • S3BucketName — (String)

        The name of the S3 bucket.

      • S3Prefix — (String)

        The S3 bucket prefix.

      • S3Path — (String)

        The path to the S3 bucket and file that the mailbox export job is exporting to.

      • EstimatedProgress — (Integer)

        The estimated progress of the mailbox export job, in percentage points.

      • State — (String)

        The state of the mailbox export job.

        Possible values include:
        • "RUNNING"
        • "COMPLETED"
        • "FAILED"
        • "CANCELLED"
      • ErrorInfo — (String)

        Error information for failed mailbox export jobs.

      • StartTime — (Date)

        The mailbox export job start timestamp.

      • EndTime — (Date)

        The mailbox export job end timestamp.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeOrganization(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the describeOrganization operation

var params = {
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.describeOrganization(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization to be described.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OrganizationId — (String)

        The identifier of an organization.

      • Alias — (String)

        The alias for an organization.

      • State — (String)

        The state of an organization.

      • DirectoryId — (String)

        The identifier for the directory associated with an WorkMail organization.

      • DirectoryType — (String)

        The type of directory associated with the WorkMail organization.

      • DefaultMailDomain — (String)

        The default mail domain associated with the organization.

      • CompletedDate — (Date)

        The date at which the organization became usable in the WorkMail context, in UNIX epoch time format.

      • ErrorMessage — (String)

        (Optional) The error message indicating if unexpected behavior was encountered with regards to the organization.

      • ARN — (String)

        The Amazon Resource Name (ARN) of the organization.

      • MigrationAdmin — (String)

        The user ID of the migration admin if migration is enabled for the organization.

      • InteroperabilityEnabled — (Boolean)

        Indicates if interoperability is enabled for this organization.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeResource(params = {}, callback) ⇒ AWS.Request

Returns the data available for the resource.

Service Reference:

Examples:

Calling the describeResource operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  ResourceId: 'STRING_VALUE' /* required */
};
workmail.describeResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier associated with the organization for which the resource is described.

    • ResourceId — (String)

      The identifier of the resource to be described.

      The identifier can accept ResourceId, Resourcename, or email. The following identity formats are available:

      • Resource ID: r-0123456789a0123456789b0123456789

      • Email address: resource@domain.tld

      • Resource name: resource

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResourceId — (String)

        The identifier of the described resource.

      • Email — (String)

        The email of the described resource.

      • Name — (String)

        The name of the described resource.

      • Type — (String)

        The type of the described resource.

        Possible values include:
        • "ROOM"
        • "EQUIPMENT"
      • BookingOptions — (map)

        The booking options for the described resource.

        • AutoAcceptRequests — (Boolean)

          The resource's ability to automatically reply to requests. If disabled, delegates must be associated to the resource.

        • AutoDeclineRecurringRequests — (Boolean)

          The resource's ability to automatically decline any recurring requests.

        • AutoDeclineConflictingRequests — (Boolean)

          The resource's ability to automatically decline any conflicting requests.

      • State — (String)

        The state of the resource: enabled (registered to WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.

        Possible values include:
        • "ENABLED"
        • "DISABLED"
        • "DELETED"
      • EnabledDate — (Date)

        The date and time when a resource was enabled for WorkMail, in UNIX epoch time format.

      • DisabledDate — (Date)

        The date and time when a resource was disabled from WorkMail, in UNIX epoch time format.

      • Description — (String)

        Description of the resource.

      • HiddenFromGlobalAddressList — (Boolean)

        If enabled, the resource is hidden from the global address list.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeUser(params = {}, callback) ⇒ AWS.Request

Provides information regarding the user.

Service Reference:

Examples:

Calling the describeUser operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE' /* required */
};
workmail.describeUser(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the user exists.

    • UserId — (String)

      The identifier for the user to be described.

      The identifier can be the UserId, Username, or email. The following identity formats are available:

      • User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: user@domain.tld

      • User name: user

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • UserId — (String)

        The identifier for the described user.

      • Name — (String)

        The name for the user.

      • Email — (String)

        The email of the user.

      • DisplayName — (String)

        The display name of the user.

      • State — (String)

        The state of a user: enabled (registered to WorkMail) or disabled (deregistered or never registered to WorkMail).

        Possible values include:
        • "ENABLED"
        • "DISABLED"
        • "DELETED"
      • UserRole — (String)

        In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into WorkMail as users. Because different WorkMail organizations rely on different directory types, administrators can distinguish between an unregistered user (account is disabled and has a user role) and the directory administrators. The values are USER, RESOURCE, SYSTEM_USER, and REMOTE_USER.

        Possible values include:
        • "USER"
        • "RESOURCE"
        • "SYSTEM_USER"
        • "REMOTE_USER"
      • EnabledDate — (Date)

        The date and time at which the user was enabled for WorkMailusage, in UNIX epoch time format.

      • DisabledDate — (Date)

        The date and time at which the user was disabled for WorkMail usage, in UNIX epoch time format.

      • MailboxProvisionedDate — (Date)

        The date when the mailbox was created for the user.

      • MailboxDeprovisionedDate — (Date)

        The date when the mailbox was removed for the user.

      • FirstName — (String)

        First name of the user.

      • LastName — (String)

        Last name of the user.

      • HiddenFromGlobalAddressList — (Boolean)

        If enabled, the user is hidden from the global address list.

      • Initials — (String)

        Initials of the user.

      • Telephone — (String)

        User's contact number.

      • Street — (String)

        Street where the user is located.

      • JobTitle — (String)

        Job title of the user.

      • City — (String)

        City where the user is located.

      • Company — (String)

        Company of the user.

      • ZipCode — (String)

        Zip code of the user.

      • Department — (String)

        Department of the user.

      • Country — (String)

        Country where the user is located.

      • Office — (String)

        Office where the user is located.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateDelegateFromResource(params = {}, callback) ⇒ AWS.Request

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

Examples:

Calling the disassociateDelegateFromResource operation

var params = {
  EntityId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  ResourceId: 'STRING_VALUE' /* required */
};
workmail.disassociateDelegateFromResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the resource exists.

    • ResourceId — (String)

      The identifier of the resource from which delegates' set members are removed.

      The identifier can accept ResourceId, Resourcename, or email. The following identity formats are available:

      • Resource ID: r-0123456789a0123456789b0123456789

      • Email address: resource@domain.tld

      • Resource name: resource

    • EntityId — (String)

      The identifier for the member (user, group) to be removed from the resource's delegates.

      The entity ID can accept UserId or GroupID, Username or Groupname, or email.

      • Entity: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: entity@domain.tld

      • Entity: entity

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateMemberFromGroup(params = {}, callback) ⇒ AWS.Request

Removes a member from a group.

Service Reference:

Examples:

Calling the disassociateMemberFromGroup operation

var params = {
  GroupId: 'STRING_VALUE', /* required */
  MemberId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.disassociateMemberFromGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the group exists.

    • GroupId — (String)

      The identifier for the group from which members are removed.

      The identifier can accept GroupId, Groupname, or email. The following identity formats are available:

      • Group ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: group@domain.tld

      • Group name: group

    • MemberId — (String)

      The identifier for the member to be removed from the group.

      The member ID can accept UserID or GroupId, Username or Groupname, or email.

      • Member ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: member@domain.tld

      • Member name: member

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getAccessControlEffect(params = {}, callback) ⇒ AWS.Request

Gets the effects of an organization's access control rules as they apply to a specified IPv4 address, access protocol action, and user ID or impersonation role ID. You must provide either the user ID or impersonation role ID. Impersonation role ID can only be used with Action EWS.

Service Reference:

Examples:

Calling the getAccessControlEffect operation

var params = {
  Action: 'STRING_VALUE', /* required */
  IpAddress: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  ImpersonationRoleId: 'STRING_VALUE',
  UserId: 'STRING_VALUE'
};
workmail.getAccessControlEffect(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization.

    • IpAddress — (String)

      The IPv4 address.

    • Action — (String)

      The access protocol action. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail.

    • UserId — (String)

      The user ID.

    • ImpersonationRoleId — (String)

      The impersonation role ID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Effect — (String)

        The rule effect.

        Possible values include:
        • "ALLOW"
        • "DENY"
      • MatchedRules — (Array<String>)

        The rules that match the given parameters, resulting in an effect.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDefaultRetentionPolicy(params = {}, callback) ⇒ AWS.Request

Gets the default retention policy details for the specified organization.

Service Reference:

Examples:

Calling the getDefaultRetentionPolicy operation

var params = {
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.getDefaultRetentionPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The organization ID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        The retention policy ID.

      • Name — (String)

        The retention policy name.

      • Description — (String)

        The retention policy description.

      • FolderConfigurations — (Array<map>)

        The retention policy folder configurations.

        • Namerequired — (String)

          The folder name.

          Possible values include:
          • "INBOX"
          • "DELETED_ITEMS"
          • "SENT_ITEMS"
          • "DRAFTS"
          • "JUNK_EMAIL"
        • Actionrequired — (String)

          The action to take on the folder contents at the end of the folder configuration period.

          Possible values include:
          • "NONE"
          • "DELETE"
          • "PERMANENTLY_DELETE"
        • Period — (Integer)

          The number of days for which the folder-configuration action applies.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getImpersonationRole(params = {}, callback) ⇒ AWS.Request

Gets the impersonation role details for the given WorkMail organization.

Service Reference:

Examples:

Calling the getImpersonationRole operation

var params = {
  ImpersonationRoleId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.getImpersonationRole(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization from which to retrieve the impersonation role.

    • ImpersonationRoleId — (String)

      The impersonation role ID to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ImpersonationRoleId — (String)

        The impersonation role ID.

      • Name — (String)

        The impersonation role name.

      • Type — (String)

        The impersonation role type.

        Possible values include:
        • "FULL_ACCESS"
        • "READ_ONLY"
      • Description — (String)

        The impersonation role description.

      • Rules — (Array<map>)

        The list of rules for the given impersonation role.

        • ImpersonationRuleIdrequired — (String)

          The identifier of the rule.

        • Name — (String)

          The rule name.

        • Description — (String)

          The rule description.

        • Effectrequired — (String)

          The effect of the rule when it matches the input. Allowed effect values are ALLOW or DENY.

          Possible values include:
          • "ALLOW"
          • "DENY"
        • TargetUsers — (Array<String>)

          A list of user IDs that match the rule.

        • NotTargetUsers — (Array<String>)

          A list of user IDs that don't match the rule.

      • DateCreated — (Date)

        The date when the impersonation role was created.

      • DateModified — (Date)

        The date when the impersonation role was last modified.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getImpersonationRoleEffect(params = {}, callback) ⇒ AWS.Request

Tests whether the given impersonation role can impersonate a target user.

Service Reference:

Examples:

Calling the getImpersonationRoleEffect operation

var params = {
  ImpersonationRoleId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  TargetUser: 'STRING_VALUE' /* required */
};
workmail.getImpersonationRoleEffect(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization where the impersonation role is defined.

    • ImpersonationRoleId — (String)

      The impersonation role ID to test.

    • TargetUser — (String)

      The WorkMail organization user chosen to test the impersonation role. The following identity formats are available:

      • User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: user@domain.tld

      • User name: user

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Type — (String)

        The impersonation role type.

        Possible values include:
        • "FULL_ACCESS"
        • "READ_ONLY"
      • Effect — (String)

        Effect of the impersonation role on the target user based on its rules. Available effects are ALLOW or DENY.

        Possible values include:
        • "ALLOW"
        • "DENY"
      • MatchedRules — (Array<map>)

        A list of the rules that match the input and produce the configured effect.

        • ImpersonationRuleId — (String)

          The ID of the rule that matched the input

        • Name — (String)

          The name of the rule that matched the input.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getMailboxDetails(params = {}, callback) ⇒ AWS.Request

Requests a user's mailbox details for a specified organization and user.

Service Reference:

Examples:

Calling the getMailboxDetails operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE' /* required */
};
workmail.getMailboxDetails(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization that contains the user whose mailbox details are being requested.

    • UserId — (String)

      The identifier for the user whose mailbox details are being requested.

      The identifier can be the UserId, Username, or email. The following identity formats are available:

      • User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: user@domain.tld

      • User name: user

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • MailboxQuota — (Integer)

        The maximum allowed mailbox size, in MB, for the specified user.

      • MailboxSize — (Float)

        The current mailbox size, in MB, for the specified user.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getMailDomain(params = {}, callback) ⇒ AWS.Request

Gets details for a mail domain, including domain records required to configure your domain with recommended security.

Service Reference:

Examples:

Calling the getMailDomain operation

var params = {
  DomainName: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.getMailDomain(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization for which the domain is retrieved.

    • DomainName — (String)

      The domain from which you want to retrieve details.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Records — (Array<map>)

        A list of the DNS records that WorkMail recommends adding in your DNS provider for the best user experience. The records configure your domain with DMARC, SPF, DKIM, and direct incoming email traffic to SES. See admin guide for more details.

        • Type — (String)

          The RFC 1035 record type. Possible values: CNAME, A, MX.

        • Hostname — (String)

          The DNS hostname.- For example, domain.example.com.

        • Value — (String)

          The value returned by the DNS for a query to that hostname and record type.

      • IsTestDomain — (Boolean)

        Specifies whether the domain is a test domain provided by WorkMail, or a custom domain.

      • IsDefault — (Boolean)

        Specifies whether the domain is the default domain for your organization.

      • OwnershipVerificationStatus — (String)

        Indicates the status of the domain ownership verification.

        Possible values include:
        • "PENDING"
        • "VERIFIED"
        • "FAILED"
      • DkimVerificationStatus — (String)

        Indicates the status of a DKIM verification.

        Possible values include:
        • "PENDING"
        • "VERIFIED"
        • "FAILED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getMobileDeviceAccessEffect(params = {}, callback) ⇒ AWS.Request

Simulates the effect of the mobile device access rules for the given attributes of a sample access event. Use this method to test the effects of the current set of mobile device access rules for the WorkMail organization for a particular user's attributes.

Service Reference:

Examples:

Calling the getMobileDeviceAccessEffect operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  DeviceModel: 'STRING_VALUE',
  DeviceOperatingSystem: 'STRING_VALUE',
  DeviceType: 'STRING_VALUE',
  DeviceUserAgent: 'STRING_VALUE'
};
workmail.getMobileDeviceAccessEffect(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization to simulate the access effect for.

    • DeviceType — (String)

      Device type the simulated user will report.

    • DeviceModel — (String)

      Device model the simulated user will report.

    • DeviceOperatingSystem — (String)

      Device operating system the simulated user will report.

    • DeviceUserAgent — (String)

      Device user agent the simulated user will report.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Effect — (String)

        The effect of the simulated access, ALLOW or DENY, after evaluating mobile device access rules in the WorkMail organization for the simulated user parameters.

        Possible values include:
        • "ALLOW"
        • "DENY"
      • MatchedRules — (Array<map>)

        A list of the rules which matched the simulated user input and produced the effect.

        • MobileDeviceAccessRuleId — (String)

          Identifier of the rule that a simulated user matches.

        • Name — (String)

          Name of a rule that a simulated user matches.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getMobileDeviceAccessOverride(params = {}, callback) ⇒ AWS.Request

Gets the mobile device access override for the given WorkMail organization, user, and device.

Service Reference:

Examples:

Calling the getMobileDeviceAccessOverride operation

var params = {
  DeviceId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE' /* required */
};
workmail.getMobileDeviceAccessOverride(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization to which you want to apply the override.

    • UserId — (String)

      Identifies the WorkMail user for the override. Accepts the following types of user identities:

      • User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: user@domain.tld

      • User name: user

    • DeviceId — (String)

      The mobile device to which the override applies. DeviceId is case insensitive.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • UserId — (String)

        The WorkMail user to which the access override applies.

      • DeviceId — (String)

        The device to which the access override applies.

      • Effect — (String)

        The effect of the override, ALLOW or DENY.

        Possible values include:
        • "ALLOW"
        • "DENY"
      • Description — (String)

        A description of the override.

      • DateCreated — (Date)

        The date the override was first created.

      • DateModified — (Date)

        The date the description was last modified.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listAccessControlRules(params = {}, callback) ⇒ AWS.Request

Lists the access control rules for the specified organization.

Service Reference:

Examples:

Calling the listAccessControlRules operation

var params = {
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.listAccessControlRules(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Rules — (Array<map>)

        The access control rules.

        • Name — (String)

          The rule name.

        • Effect — (String)

          The rule effect.

          Possible values include:
          • "ALLOW"
          • "DENY"
        • Description — (String)

          The rule description.

        • IpRanges — (Array<String>)

          IPv4 CIDR ranges to include in the rule.

        • NotIpRanges — (Array<String>)

          IPv4 CIDR ranges to exclude from the rule.

        • Actions — (Array<String>)

          Access protocol actions to include in the rule. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail.

        • NotActions — (Array<String>)

          Access protocol actions to exclude from the rule. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail.

        • UserIds — (Array<String>)

          User IDs to include in the rule.

        • NotUserIds — (Array<String>)

          User IDs to exclude from the rule.

        • DateCreated — (Date)

          The date that the rule was created.

        • DateModified — (Date)

          The date that the rule was modified.

        • ImpersonationRoleIds — (Array<String>)

          Impersonation role IDs to include in the rule.

        • NotImpersonationRoleIds — (Array<String>)

          Impersonation role IDs to exclude from the rule.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listAliases(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the listAliases operation

var params = {
  EntityId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listAliases(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the entity exists.

    • EntityId — (String)

      The identifier for the entity for which to list the aliases.

    • NextToken — (String)

      The token to use to retrieve the next page of results. The first call does not contain any tokens.

    • MaxResults — (Integer)

      The maximum number of results to return in a single call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Aliases — (Array<String>)

        The entity's paginated aliases.

      • NextToken — (String)

        The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listAvailabilityConfigurations(params = {}, callback) ⇒ AWS.Request

List all the AvailabilityConfiguration's for the given WorkMail organization.

Service Reference:

Examples:

Calling the listAvailabilityConfigurations operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listAvailabilityConfigurations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization for which the AvailabilityConfiguration's will be listed.

    • MaxResults — (Integer)

      The maximum number of results to return in a single call.

    • NextToken — (String)

      The token to use to retrieve the next page of results. The first call does not require a token.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AvailabilityConfigurations — (Array<map>)

        The list of AvailabilityConfiguration's that exist for the specified WorkMail organization.

        • DomainName — (String)

          Displays the domain to which the provider applies.

        • ProviderType — (String)

          Displays the provider type that applies to this domain.

          Possible values include:
          • "EWS"
          • "LAMBDA"
        • EwsProvider — (map)

          If ProviderType is EWS, then this field contains RedactedEwsAvailabilityProvider. Otherwise, it is not required.

          • EwsEndpoint — (String)

            The endpoint of the remote EWS server.

          • EwsUsername — (String)

            The username used to authenticate the remote EWS server.

        • LambdaProvider — (map)

          If ProviderType is LAMBDA then this field contains LambdaAvailabilityProvider. Otherwise, it is not required.

          • LambdaArnrequired — (String)

            The Amazon Resource Name (ARN) of the Lambda that acts as the availability provider.

        • DateCreated — (Date)

          The date and time at which the availability configuration was created.

        • DateModified — (Date)

          The date and time at which the availability configuration was last modified.

      • NextToken — (String)

        The token to use to retrieve the next page of results. The value is null when there are no further results to return.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listGroupMembers(params = {}, callback) ⇒ AWS.Request

Returns an overview of the members of a group. Users and groups can be members of a group.

Service Reference:

Examples:

Calling the listGroupMembers operation

var params = {
  GroupId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listGroupMembers(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the group exists.

    • GroupId — (String)

      The identifier for the group to which the members (users or groups) are associated.

      The identifier can accept GroupId, Groupname, or email. The following identity formats are available:

      • Group ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: group@domain.tld

      • Group name: group

    • NextToken — (String)

      The token to use to retrieve the next page of results. The first call does not contain any tokens.

    • MaxResults — (Integer)

      The maximum number of results to return in a single call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Members — (Array<map>)

        The members associated to the group.

        • Id — (String)

          The identifier of the member.

        • Name — (String)

          The name of the member.

        • Type — (String)

          A member can be a user or group.

          Possible values include:
          • "GROUP"
          • "USER"
        • State — (String)

          The state of the member, which can be ENABLED, DISABLED, or DELETED.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
          • "DELETED"
        • EnabledDate — (Date)

          The date indicating when the member was enabled for WorkMail use.

        • DisabledDate — (Date)

          The date indicating when the member was disabled from WorkMail use.

      • NextToken — (String)

        The token to use to retrieve the next page of results. The first call does not contain any tokens.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listGroups(params = {}, callback) ⇒ AWS.Request

Returns summaries of the organization's groups.

Service Reference:

Examples:

Calling the listGroups operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  Filters: {
    NamePrefix: 'STRING_VALUE',
    PrimaryEmailPrefix: 'STRING_VALUE',
    State: ENABLED | DISABLED | DELETED
  },
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listGroups(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the groups exist.

    • NextToken — (String)

      The token to use to retrieve the next page of results. The first call does not contain any tokens.

    • MaxResults — (Integer)

      The maximum number of results to return in a single call.

    • Filters — (map)

      Limit the search results based on the filter criteria. Only one filter per request is supported.

      • NamePrefix — (String)

        Filters only groups with the provided name prefix.

      • PrimaryEmailPrefix — (String)

        Filters only groups with the provided primary email prefix.

      • State — (String)

        Filters only groups with the provided state.

        Possible values include:
        • "ENABLED"
        • "DISABLED"
        • "DELETED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Groups — (Array<map>)

        The overview of groups for an organization.

        • Id — (String)

          The identifier of the group.

        • Email — (String)

          The email of the group.

        • Name — (String)

          The name of the group.

        • State — (String)

          The state of the group, which can be ENABLED, DISABLED, or DELETED.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
          • "DELETED"
        • EnabledDate — (Date)

          The date indicating when the group was enabled for WorkMail use.

        • DisabledDate — (Date)

          The date indicating when the group was disabled from WorkMail use.

      • NextToken — (String)

        The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listGroupsForEntity(params = {}, callback) ⇒ AWS.Request

Returns all the groups to which an entity belongs.

Service Reference:

Examples:

Calling the listGroupsForEntity operation

var params = {
  EntityId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  Filters: {
    GroupNamePrefix: 'STRING_VALUE'
  },
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listGroupsForEntity(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the entity exists.

    • EntityId — (String)

      The identifier for the entity.

      The entity ID can accept UserId or GroupID, Username or Groupname, or email.

      • Entity ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: entity@domain.tld

      • Entity name: entity

    • Filters — (map)

      Limit the search results based on the filter criteria.

      • GroupNamePrefix — (String)

        Filters only group names that start with the provided name prefix.

    • NextToken — (String)

      The token to use to retrieve the next page of results. The first call does not contain any tokens.

    • MaxResults — (Integer)

      The maximum number of results to return in a single call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Groups — (Array<map>)

        The overview of groups in an organization.

        • GroupId — (String)

          Group ID that matched the group.

        • GroupName — (String)

          Group name that matched the group.

      • NextToken — (String)

        The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listImpersonationRoles(params = {}, callback) ⇒ AWS.Request

Lists all the impersonation roles for the given WorkMail organization.

Service Reference:

Examples:

Calling the listImpersonationRoles operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listImpersonationRoles(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization to which the listed impersonation roles belong.

    • NextToken — (String)

      The token used to retrieve the next page of results. The first call doesn't require a token.

    • MaxResults — (Integer)

      The maximum number of results returned in a single call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Roles — (Array<map>)

        The list of impersonation roles under the given WorkMail organization.

        • ImpersonationRoleId — (String)

          The identifier of the impersonation role.

        • Name — (String)

          The impersonation role name.

        • Type — (String)

          The impersonation role type.

          Possible values include:
          • "FULL_ACCESS"
          • "READ_ONLY"
        • DateCreated — (Date)

          The date when the impersonation role was created.

        • DateModified — (Date)

          The date when the impersonation role was last modified.

      • NextToken — (String)

        The token to retrieve the next page of results. The value is null when there are no results to return.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listMailboxExportJobs(params = {}, callback) ⇒ AWS.Request

Lists the mailbox export jobs started for the specified organization within the last seven days.

Service Reference:

Examples:

Calling the listMailboxExportJobs operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listMailboxExportJobs(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The organization ID.

    • NextToken — (String)

      The token to use to retrieve the next page of results.

    • MaxResults — (Integer)

      The maximum number of results to return in a single call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Jobs — (Array<map>)

        The mailbox export job details.

        • JobId — (String)

          The identifier of the mailbox export job.

        • EntityId — (String)

          The identifier of the user or resource associated with the mailbox.

        • Description — (String)

          The mailbox export job description.

        • S3BucketName — (String)

          The name of the S3 bucket.

        • S3Path — (String)

          The path to the S3 bucket and file that the mailbox export job exports to.

        • EstimatedProgress — (Integer)

          The estimated progress of the mailbox export job, in percentage points.

        • State — (String)

          The state of the mailbox export job.

          Possible values include:
          • "RUNNING"
          • "COMPLETED"
          • "FAILED"
          • "CANCELLED"
        • StartTime — (Date)

          The mailbox export job start timestamp.

        • EndTime — (Date)

          The mailbox export job end timestamp.

      • NextToken — (String)

        The token to use to retrieve the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listMailboxPermissions(params = {}, callback) ⇒ AWS.Request

Lists the mailbox permissions associated with a user, group, or resource mailbox.

Service Reference:

Examples:

Calling the listMailboxPermissions operation

var params = {
  EntityId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listMailboxPermissions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier of the organization under which the user, group, or resource exists.

    • EntityId — (String)

      The identifier of the user, or resource for which to list mailbox permissions.

      The entity ID can accept UserId or ResourceId, Username or Resourcename, or email.

      • Entity ID: 12345678-1234-1234-1234-123456789012, or r-0123456789a0123456789b0123456789

      • Email address: entity@domain.tld

      • Entity name: entity

    • NextToken — (String)

      The token to use to retrieve the next page of results. The first call does not contain any tokens.

    • MaxResults — (Integer)

      The maximum number of results to return in a single call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Permissions — (Array<map>)

        One page of the user, group, or resource mailbox permissions.

        • GranteeIdrequired — (String)

          The identifier of the user, group, or resource to which the permissions are granted.

        • GranteeTyperequired — (String)

          The type of user, group, or resource referred to in GranteeId.

          Possible values include:
          • "GROUP"
          • "USER"
        • PermissionValuesrequired — (Array<String>)

          The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.

      • NextToken — (String)

        The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listMailDomains(params = {}, callback) ⇒ AWS.Request

Lists the mail domains in a given WorkMail organization.

Service Reference:

Examples:

Calling the listMailDomains operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listMailDomains(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization for which to list domains.

    • MaxResults — (Integer)

      The maximum number of results to return in a single call.

    • NextToken — (String)

      The token to use to retrieve the next page of results. The first call does not require a token.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • MailDomains — (Array<map>)

        The list of mail domain summaries, specifying domains that exist in the specified WorkMail organization, along with the information about whether the domain is or isn't the default.

        • DomainName — (String)

          The domain name.

        • DefaultDomain — (Boolean)

          Whether the domain is default or not.

      • NextToken — (String)

        The token to use to retrieve the next page of results. The value becomes null when there are no more results to return.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listMobileDeviceAccessOverrides(params = {}, callback) ⇒ AWS.Request

Lists all the mobile device access overrides for any given combination of WorkMail organization, user, or device.

Service Reference:

Examples:

Calling the listMobileDeviceAccessOverrides operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  DeviceId: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  UserId: 'STRING_VALUE'
};
workmail.listMobileDeviceAccessOverrides(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization under which to list mobile device access overrides.

    • UserId — (String)

      The WorkMail user under which you list the mobile device access overrides. Accepts the following types of user identities:

      • User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: user@domain.tld

      • User name: user

    • DeviceId — (String)

      The mobile device to which the access override applies.

    • NextToken — (String)

      The token to use to retrieve the next page of results. The first call does not require a token.

    • MaxResults — (Integer)

      The maximum number of results to return in a single call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Overrides — (Array<map>)

        The list of mobile device access overrides that exist for the specified WorkMail organization and user.

        • UserId — (String)

          The WorkMail user to which the access override applies.

        • DeviceId — (String)

          The device to which the override applies.

        • Effect — (String)

          The effect of the override, ALLOW or DENY.

          Possible values include:
          • "ALLOW"
          • "DENY"
        • Description — (String)

          A description of the override.

        • DateCreated — (Date)

          The date the override was first created.

        • DateModified — (Date)

          The date the override was last modified.

      • NextToken — (String)

        The token to use to retrieve the next page of results. The value is “null” when there are no more results to return.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listMobileDeviceAccessRules(params = {}, callback) ⇒ AWS.Request

Lists the mobile device access rules for the specified WorkMail organization.

Service Reference:

Examples:

Calling the listMobileDeviceAccessRules operation

var params = {
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.listMobileDeviceAccessRules(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization for which to list the rules.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Rules — (Array<map>)

        The list of mobile device access rules that exist under the specified WorkMail organization.

        • MobileDeviceAccessRuleId — (String)

          The ID assigned to a mobile access rule.

        • Name — (String)

          The name of a mobile access rule.

        • Description — (String)

          The description of a mobile access rule.

        • Effect — (String)

          The effect of the rule when it matches. Allowed values are ALLOW or DENY.

          Possible values include:
          • "ALLOW"
          • "DENY"
        • DeviceTypes — (Array<String>)

          Device types that a rule will match.

        • NotDeviceTypes — (Array<String>)

          Device types that a rule will not match. All other device types will match.

        • DeviceModels — (Array<String>)

          Device models that a rule will match.

        • NotDeviceModels — (Array<String>)

          Device models that a rule will not match. All other device models will match.

        • DeviceOperatingSystems — (Array<String>)

          Device operating systems that a rule will match.

        • NotDeviceOperatingSystems — (Array<String>)

          Device operating systems that a rule will not match. All other device types will match.

        • DeviceUserAgents — (Array<String>)

          Device user agents that a rule will match.

        • NotDeviceUserAgents — (Array<String>)

          Device user agents that a rule will not match. All other device user agents will match.

        • DateCreated — (Date)

          The date and time at which an access rule was created.

        • DateModified — (Date)

          The date and time at which an access rule was modified.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listOrganizations(params = {}, callback) ⇒ AWS.Request

Returns summaries of the customer's organizations.

Service Reference:

Examples:

Calling the listOrganizations operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listOrganizations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      The token to use to retrieve the next page of results. The first call does not contain any tokens.

    • MaxResults — (Integer)

      The maximum number of results to return in a single call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OrganizationSummaries — (Array<map>)

        The overview of owned organizations presented as a list of organization summaries.

        • OrganizationId — (String)

          The identifier associated with the organization.

        • Alias — (String)

          The alias associated with the organization.

        • DefaultMailDomain — (String)

          The default email domain associated with the organization.

        • ErrorMessage — (String)

          The error message associated with the organization. It is only present if unexpected behavior has occurred with regards to the organization. It provides insight or solutions regarding unexpected behavior.

        • State — (String)

          The state associated with the organization.

      • NextToken — (String)

        The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listResourceDelegates(params = {}, callback) ⇒ AWS.Request

Lists the delegates associated with a resource. Users and groups can be resource delegates and answer requests on behalf of the resource.

Service Reference:

Examples:

Calling the listResourceDelegates operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  ResourceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listResourceDelegates(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization that contains the resource for which delegates are listed.

    • ResourceId — (String)

      The identifier for the resource whose delegates are listed.

      The identifier can accept ResourceId, Resourcename, or email. The following identity formats are available:

      • Resource ID: r-0123456789a0123456789b0123456789

      • Email address: resource@domain.tld

      • Resource name: resource

    • NextToken — (String)

      The token used to paginate through the delegates associated with a resource.

    • MaxResults — (Integer)

      The number of maximum results in a page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Delegates — (Array<map>)

        One page of the resource's delegates.

        • Idrequired — (String)

          The identifier for the user or group associated as the resource's delegate.

        • Typerequired — (String)

          The type of the delegate: user or group.

          Possible values include:
          • "GROUP"
          • "USER"
      • NextToken — (String)

        The token used to paginate through the delegates associated with a resource. While results are still available, it has an associated value. When the last page is reached, the token is empty.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listResources(params = {}, callback) ⇒ AWS.Request

Returns summaries of the organization's resources.

Service Reference:

Examples:

Calling the listResources operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  Filters: {
    NamePrefix: 'STRING_VALUE',
    PrimaryEmailPrefix: 'STRING_VALUE',
    State: ENABLED | DISABLED | DELETED
  },
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listResources(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the resources exist.

    • NextToken — (String)

      The token to use to retrieve the next page of results. The first call does not contain any tokens.

    • MaxResults — (Integer)

      The maximum number of results to return in a single call.

    • Filters — (map)

      Limit the resource search results based on the filter criteria. You can only use one filter per request.

      • NamePrefix — (String)

        Filters only resource that start with the entered name prefix .

      • PrimaryEmailPrefix — (String)

        Filters only resource with the provided primary email prefix.

      • State — (String)

        Filters only resource with the provided state.

        Possible values include:
        • "ENABLED"
        • "DISABLED"
        • "DELETED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Resources — (Array<map>)

        One page of the organization's resource representation.

        • Id — (String)

          The identifier of the resource.

        • Email — (String)

          The email of the resource.

        • Name — (String)

          The name of the resource.

        • Type — (String)

          The type of the resource: equipment or room.

          Possible values include:
          • "ROOM"
          • "EQUIPMENT"
        • State — (String)

          The state of the resource, which can be ENABLED, DISABLED, or DELETED.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
          • "DELETED"
        • EnabledDate — (Date)

          The date indicating when the resource was enabled for WorkMail use.

        • DisabledDate — (Date)

          The date indicating when the resource was disabled from WorkMail use.

        • Description — (String)

          Resource description.

      • NextToken — (String)

        The token used to paginate through all the organization's resources. While results are still available, it has an associated value. When the last page is reached, the token is empty.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

Lists the tags applied to an WorkMail organization resource.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  ResourceARN: 'STRING_VALUE' /* required */
};
workmail.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceARN — (String)

      The resource ARN.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Tags — (Array<map>)

        A list of tag key-value pairs.

        • Keyrequired — (String)

          The key of the tag.

        • Valuerequired — (String)

          The value of the tag.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listUsers(params = {}, callback) ⇒ AWS.Request

Returns summaries of the organization's users.

Service Reference:

Examples:

Calling the listUsers operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  Filters: {
    DisplayNamePrefix: 'STRING_VALUE',
    PrimaryEmailPrefix: 'STRING_VALUE',
    State: ENABLED | DISABLED | DELETED,
    UsernamePrefix: 'STRING_VALUE'
  },
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
workmail.listUsers(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the users exist.

    • NextToken — (String)

      The token to use to retrieve the next page of results. The first call does not contain any tokens.

    • MaxResults — (Integer)

      The maximum number of results to return in a single call.

    • Filters — (map)

      Limit the user search results based on the filter criteria. You can only use one filter per request.

      • UsernamePrefix — (String)

        Filters only users with the provided username prefix.

      • DisplayNamePrefix — (String)

        Filters only users with the provided display name prefix.

      • PrimaryEmailPrefix — (String)

        Filters only users with the provided email prefix.

      • State — (String)

        Filters only users with the provided state.

        Possible values include:
        • "ENABLED"
        • "DISABLED"
        • "DELETED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Users — (Array<map>)

        The overview of users for an organization.

        • Id — (String)

          The identifier of the user.

        • Email — (String)

          The email of the user.

        • Name — (String)

          The name of the user.

        • DisplayName — (String)

          The display name of the user.

        • State — (String)

          The state of the user, which can be ENABLED, DISABLED, or DELETED.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
          • "DELETED"
        • UserRole — (String)

          The role of the user.

          Possible values include:
          • "USER"
          • "RESOURCE"
          • "SYSTEM_USER"
          • "REMOTE_USER"
        • EnabledDate — (Date)

          The date indicating when the user was enabled for WorkMail use.

        • DisabledDate — (Date)

          The date indicating when the user was disabled from WorkMail use.

      • NextToken — (String)

        The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putAccessControlRule(params = {}, callback) ⇒ AWS.Request

Adds a new access control rule for the specified organization. The rule allows or denies access to the organization for the specified IPv4 addresses, access protocol actions, user IDs and impersonation IDs. Adding a new rule with the same name as an existing rule replaces the older rule.

Service Reference:

Examples:

Calling the putAccessControlRule operation

var params = {
  Description: 'STRING_VALUE', /* required */
  Effect: ALLOW | DENY, /* required */
  Name: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  Actions: [
    'STRING_VALUE',
    /* more items */
  ],
  ImpersonationRoleIds: [
    'STRING_VALUE',
    /* more items */
  ],
  IpRanges: [
    'STRING_VALUE',
    /* more items */
  ],
  NotActions: [
    'STRING_VALUE',
    /* more items */
  ],
  NotImpersonationRoleIds: [
    'STRING_VALUE',
    /* more items */
  ],
  NotIpRanges: [
    'STRING_VALUE',
    /* more items */
  ],
  NotUserIds: [
    'STRING_VALUE',
    /* more items */
  ],
  UserIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
workmail.putAccessControlRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The rule name.

    • Effect — (String)

      The rule effect.

      Possible values include:
      • "ALLOW"
      • "DENY"
    • Description — (String)

      The rule description.

    • IpRanges — (Array<String>)

      IPv4 CIDR ranges to include in the rule.

    • NotIpRanges — (Array<String>)

      IPv4 CIDR ranges to exclude from the rule.

    • Actions — (Array<String>)

      Access protocol actions to include in the rule. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail.

    • NotActions — (Array<String>)

      Access protocol actions to exclude from the rule. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail.

    • UserIds — (Array<String>)

      User IDs to include in the rule.

    • NotUserIds — (Array<String>)

      User IDs to exclude from the rule.

    • OrganizationId — (String)

      The identifier of the organization.

    • ImpersonationRoleIds — (Array<String>)

      Impersonation role IDs to include in the rule.

    • NotImpersonationRoleIds — (Array<String>)

      Impersonation role IDs to exclude from the rule.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putEmailMonitoringConfiguration(params = {}, callback) ⇒ AWS.Request

Creates or updates the email monitoring configuration for a specified organization.

Service Reference:

Examples:

Calling the putEmailMonitoringConfiguration operation

var params = {
  LogGroupArn: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  RoleArn: 'STRING_VALUE' /* required */
};
workmail.putEmailMonitoringConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The ID of the organization for which the email monitoring configuration is set.

    • RoleArn — (String)

      The Amazon Resource Name (ARN) of the IAM Role associated with the email monitoring configuration.

    • LogGroupArn — (String)

      The Amazon Resource Name (ARN) of the CloudWatch Log group associated with the email monitoring configuration.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putInboundDmarcSettings(params = {}, callback) ⇒ AWS.Request

Enables or disables a DMARC policy for a given organization.

Service Reference:

Examples:

Calling the putInboundDmarcSettings operation

var params = {
  Enforced: true || false, /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.putInboundDmarcSettings(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The ID of the organization that you are applying the DMARC policy to.

    • Enforced — (Boolean)

      Enforces or suspends a policy after it's applied.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putMailboxPermissions(params = {}, callback) ⇒ AWS.Request

Sets permissions for a user, group, or resource. This replaces any pre-existing permissions.

Service Reference:

Examples:

Calling the putMailboxPermissions operation

var params = {
  EntityId: 'STRING_VALUE', /* required */
  GranteeId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  PermissionValues: [ /* required */
    FULL_ACCESS | SEND_AS | SEND_ON_BEHALF,
    /* more items */
  ]
};
workmail.putMailboxPermissions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier of the organization under which the user, group, or resource exists.

    • EntityId — (String)

      The identifier of the user or resource for which to update mailbox permissions.

      The identifier can be UserId, ResourceID, or Group Id, Username, Resourcename, or Groupname, or email.

      • Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: entity@domain.tld

      • Entity name: entity

    • GranteeId — (String)

      The identifier of the user, group, or resource to which to grant the permissions.

      The identifier can be UserId, ResourceID, or Group Id, Username, Resourcename, or Groupname, or email.

      • Grantee ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: grantee@domain.tld

      • Grantee name: grantee

    • PermissionValues — (Array<String>)

      The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putMobileDeviceAccessOverride(params = {}, callback) ⇒ AWS.Request

Creates or updates a mobile device access override for the given WorkMail organization, user, and device.

Service Reference:

Examples:

Calling the putMobileDeviceAccessOverride operation

var params = {
  DeviceId: 'STRING_VALUE', /* required */
  Effect: ALLOW | DENY, /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE'
};
workmail.putMobileDeviceAccessOverride(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      Identifies the WorkMail organization for which you create the override.

    • UserId — (String)

      The WorkMail user for which you create the override. Accepts the following types of user identities:

      • User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: user@domain.tld

      • User name: user

    • DeviceId — (String)

      The mobile device for which you create the override. DeviceId is case insensitive.

    • Effect — (String)

      The effect of the override, ALLOW or DENY.

      Possible values include:
      • "ALLOW"
      • "DENY"
    • Description — (String)

      A description of the override.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putRetentionPolicy(params = {}, callback) ⇒ AWS.Request

Puts a retention policy to the specified organization.

Service Reference:

Examples:

Calling the putRetentionPolicy operation

var params = {
  FolderConfigurations: [ /* required */
    {
      Action: NONE | DELETE | PERMANENTLY_DELETE, /* required */
      Name: INBOX | DELETED_ITEMS | SENT_ITEMS | DRAFTS | JUNK_EMAIL, /* required */
      Period: 'NUMBER_VALUE'
    },
    /* more items */
  ],
  Name: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Id: 'STRING_VALUE'
};
workmail.putRetentionPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The organization ID.

    • Id — (String)

      The retention policy ID.

    • Name — (String)

      The retention policy name.

    • Description — (String)

      The retention policy description.

    • FolderConfigurations — (Array<map>)

      The retention policy folder configurations.

      • Namerequired — (String)

        The folder name.

        Possible values include:
        • "INBOX"
        • "DELETED_ITEMS"
        • "SENT_ITEMS"
        • "DRAFTS"
        • "JUNK_EMAIL"
      • Actionrequired — (String)

        The action to take on the folder contents at the end of the folder configuration period.

        Possible values include:
        • "NONE"
        • "DELETE"
        • "PERMANENTLY_DELETE"
      • Period — (Integer)

        The number of days for which the folder-configuration action applies.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

registerMailDomain(params = {}, callback) ⇒ AWS.Request

Registers a new domain in WorkMail and SES, and configures it for use by WorkMail. Emails received by SES for this domain are routed to the specified WorkMail organization, and WorkMail has permanent permission to use the specified domain for sending your users' emails.

Service Reference:

Examples:

Calling the registerMailDomain operation

var params = {
  DomainName: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE'
};
workmail.registerMailDomain(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ClientToken — (String)

      Idempotency token used when retrying requests.

      If a token is not provided, the SDK will use a version 4 UUID.
    • OrganizationId — (String)

      The WorkMail organization under which you're creating the domain.

    • DomainName — (String)

      The name of the mail domain to create in WorkMail and SES.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

registerToWorkMail(params = {}, callback) ⇒ AWS.Request

Registers an existing and disabled user, group, or resource for WorkMail use by associating a mailbox and calendaring capabilities. It performs no change if the user, group, or resource is enabled and fails if the user, group, or resource is deleted. This operation results in the accumulation of costs. For more information, see Pricing. The equivalent console functionality for this operation is Enable.

Users can either be created by calling the CreateUser API operation or they can be synchronized from your directory. For more information, see DeregisterFromWorkMail.

Service Reference:

Examples:

Calling the registerToWorkMail operation

var params = {
  Email: 'STRING_VALUE', /* required */
  EntityId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.registerToWorkMail(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the user, group, or resource exists.

    • EntityId — (String)

      The identifier for the user, group, or resource to be updated.

      The identifier can accept UserId, ResourceId, or GroupId, or Username, Resourcename, or Groupname. The following identity formats are available:

      • Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234

      • Entity name: entity

    • Email — (String)

      The email for the user, group, or resource to be updated.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

resetPassword(params = {}, callback) ⇒ AWS.Request

Allows the administrator to reset the password for a user.

Service Reference:

Examples:

Calling the resetPassword operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  Password: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE' /* required */
};
workmail.resetPassword(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier of the organization that contains the user for which the password is reset.

    • UserId — (String)

      The identifier of the user for whom the password is reset.

    • Password — (String)

      The new password for the user.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startMailboxExportJob(params = {}, callback) ⇒ AWS.Request

Starts a mailbox export job to export MIME-format email messages and calendar items from the specified mailbox to the specified Amazon Simple Storage Service (Amazon S3) bucket. For more information, see Exporting mailbox content in the WorkMail Administrator Guide.

Service Reference:

Examples:

Calling the startMailboxExportJob operation

var params = {
  ClientToken: 'STRING_VALUE', /* required */
  EntityId: 'STRING_VALUE', /* required */
  KmsKeyArn: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  RoleArn: 'STRING_VALUE', /* required */
  S3BucketName: 'STRING_VALUE', /* required */
  S3Prefix: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE'
};
workmail.startMailboxExportJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ClientToken — (String)

      The idempotency token for the client request.

      If a token is not provided, the SDK will use a version 4 UUID.
    • OrganizationId — (String)

      The identifier associated with the organization.

    • EntityId — (String)

      The identifier of the user or resource associated with the mailbox.

      The identifier can accept UserId or ResourceId, Username or Resourcename, or email. The following identity formats are available:

      • Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789 , or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: entity@domain.tld

      • Entity name: entity

    • Description — (String)

      The mailbox export job description.

    • RoleArn — (String)

      The ARN of the AWS Identity and Access Management (IAM) role that grants write permission to the S3 bucket.

    • KmsKeyArn — (String)

      The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service (AWS KMS) key that encrypts the exported mailbox content.

    • S3BucketName — (String)

      The name of the S3 bucket.

    • S3Prefix — (String)

      The S3 bucket prefix.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • JobId — (String)

        The job ID.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Applies the specified tags to the specified WorkMailorganization resource.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  ResourceARN: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
workmail.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceARN — (String)

      The resource ARN.

    • Tags — (Array<map>)

      The tag key-value pairs.

      • Keyrequired — (String)

        The key of the tag.

      • Valuerequired — (String)

        The value of the tag.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

testAvailabilityConfiguration(params = {}, callback) ⇒ AWS.Request

Performs a test on an availability provider to ensure that access is allowed. For EWS, it verifies the provided credentials can be used to successfully log in. For Lambda, it verifies that the Lambda function can be invoked and that the resource access policy was configured to deny anonymous access. An anonymous invocation is one done without providing either a SourceArn or SourceAccount header.

Note: The request must contain either one provider definition (EwsProvider or LambdaProvider) or the DomainName parameter. If the DomainName parameter is provided, the configuration stored under the DomainName will be tested.

Service Reference:

Examples:

Calling the testAvailabilityConfiguration operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  DomainName: 'STRING_VALUE',
  EwsProvider: {
    EwsEndpoint: 'STRING_VALUE', /* required */
    EwsPassword: 'STRING_VALUE', /* required */
    EwsUsername: 'STRING_VALUE' /* required */
  },
  LambdaProvider: {
    LambdaArn: 'STRING_VALUE' /* required */
  }
};
workmail.testAvailabilityConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization where the availability provider will be tested.

    • DomainName — (String)

      The domain to which the provider applies. If this field is provided, a stored availability provider associated to this domain name will be tested.

    • EwsProvider — (map)

      Describes an EWS based availability provider. This is only used as input to the service.

      • EwsEndpointrequired — (String)

        The endpoint of the remote EWS server.

      • EwsUsernamerequired — (String)

        The username used to authenticate the remote EWS server.

      • EwsPasswordrequired — (String)

        The password used to authenticate the remote EWS server.

    • LambdaProvider — (map)

      Describes a Lambda based availability provider.

      • LambdaArnrequired — (String)

        The Amazon Resource Name (ARN) of the Lambda that acts as the availability provider.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TestPassed — (Boolean)

        Boolean indicating whether the test passed or failed.

      • FailureReason — (String)

        String containing the reason for a failed test if TestPassed is false.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

Untags the specified tags from the specified WorkMail organization resource.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  ResourceARN: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
workmail.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceARN — (String)

      The resource ARN.

    • TagKeys — (Array<String>)

      The tag keys.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateAvailabilityConfiguration(params = {}, callback) ⇒ AWS.Request

Updates an existing AvailabilityConfiguration for the given WorkMail organization and domain.

Service Reference:

Examples:

Calling the updateAvailabilityConfiguration operation

var params = {
  DomainName: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  EwsProvider: {
    EwsEndpoint: 'STRING_VALUE', /* required */
    EwsPassword: 'STRING_VALUE', /* required */
    EwsUsername: 'STRING_VALUE' /* required */
  },
  LambdaProvider: {
    LambdaArn: 'STRING_VALUE' /* required */
  }
};
workmail.updateAvailabilityConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization for which the AvailabilityConfiguration will be updated.

    • DomainName — (String)

      The domain to which the provider applies the availability configuration.

    • EwsProvider — (map)

      The EWS availability provider definition. The request must contain exactly one provider definition, either EwsProvider or LambdaProvider. The previously stored provider will be overridden by the one provided.

      • EwsEndpointrequired — (String)

        The endpoint of the remote EWS server.

      • EwsUsernamerequired — (String)

        The username used to authenticate the remote EWS server.

      • EwsPasswordrequired — (String)

        The password used to authenticate the remote EWS server.

    • LambdaProvider — (map)

      The Lambda availability provider definition. The request must contain exactly one provider definition, either EwsProvider or LambdaProvider. The previously stored provider will be overridden by the one provided.

      • LambdaArnrequired — (String)

        The Amazon Resource Name (ARN) of the Lambda that acts as the availability provider.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateDefaultMailDomain(params = {}, callback) ⇒ AWS.Request

Updates the default mail domain for an organization. The default mail domain is used by the WorkMail AWS Console to suggest an email address when enabling a mail user. You can only have one default domain.

Service Reference:

Examples:

Calling the updateDefaultMailDomain operation

var params = {
  DomainName: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.updateDefaultMailDomain(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization for which to list domains.

    • DomainName — (String)

      The domain name that will become the default domain.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateGroup(params = {}, callback) ⇒ AWS.Request

Updates attibutes in a group.

Service Reference:

Examples:

Calling the updateGroup operation

var params = {
  GroupId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  HiddenFromGlobalAddressList: true || false
};
workmail.updateGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the group exists.

    • GroupId — (String)

      The identifier for the group to be updated.

      The identifier can accept GroupId, Groupname, or email. The following identity formats are available:

      • Group ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: group@domain.tld

      • Group name: group

    • HiddenFromGlobalAddressList — (Boolean)

      If enabled, the group is hidden from the global address list.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateImpersonationRole(params = {}, callback) ⇒ AWS.Request

Updates an impersonation role for the given WorkMail organization.

Service Reference:

Examples:

Calling the updateImpersonationRole operation

var params = {
  ImpersonationRoleId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  Rules: [ /* required */
    {
      Effect: ALLOW | DENY, /* required */
      ImpersonationRuleId: 'STRING_VALUE', /* required */
      Description: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      NotTargetUsers: [
        'STRING_VALUE',
        /* more items */
      ],
      TargetUsers: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  Type: FULL_ACCESS | READ_ONLY, /* required */
  Description: 'STRING_VALUE'
};
workmail.updateImpersonationRole(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization that contains the impersonation role to update.

    • ImpersonationRoleId — (String)

      The ID of the impersonation role to update.

    • Name — (String)

      The updated impersonation role name.

    • Type — (String)

      The updated impersonation role type.

      Possible values include:
      • "FULL_ACCESS"
      • "READ_ONLY"
    • Description — (String)

      The updated impersonation role description.

    • Rules — (Array<map>)

      The updated list of rules.

      • ImpersonationRuleIdrequired — (String)

        The identifier of the rule.

      • Name — (String)

        The rule name.

      • Description — (String)

        The rule description.

      • Effectrequired — (String)

        The effect of the rule when it matches the input. Allowed effect values are ALLOW or DENY.

        Possible values include:
        • "ALLOW"
        • "DENY"
      • TargetUsers — (Array<String>)

        A list of user IDs that match the rule.

      • NotTargetUsers — (Array<String>)

        A list of user IDs that don't match the rule.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateMailboxQuota(params = {}, callback) ⇒ AWS.Request

Updates a user's current mailbox quota for a specified organization and user.

Service Reference:

Examples:

Calling the updateMailboxQuota operation

var params = {
  MailboxQuota: 'NUMBER_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE' /* required */
};
workmail.updateMailboxQuota(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization that contains the user for whom to update the mailbox quota.

    • UserId — (String)

      The identifer for the user for whom to update the mailbox quota.

      The identifier can be the UserId, Username, or email. The following identity formats are available:

      • User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: user@domain.tld

      • User name: user

    • MailboxQuota — (Integer)

      The updated mailbox quota, in MB, for the specified user.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateMobileDeviceAccessRule(params = {}, callback) ⇒ AWS.Request

Updates a mobile device access rule for the specified WorkMail organization.

Service Reference:

Examples:

Calling the updateMobileDeviceAccessRule operation

var params = {
  Effect: ALLOW | DENY, /* required */
  MobileDeviceAccessRuleId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  DeviceModels: [
    'STRING_VALUE',
    /* more items */
  ],
  DeviceOperatingSystems: [
    'STRING_VALUE',
    /* more items */
  ],
  DeviceTypes: [
    'STRING_VALUE',
    /* more items */
  ],
  DeviceUserAgents: [
    'STRING_VALUE',
    /* more items */
  ],
  NotDeviceModels: [
    'STRING_VALUE',
    /* more items */
  ],
  NotDeviceOperatingSystems: [
    'STRING_VALUE',
    /* more items */
  ],
  NotDeviceTypes: [
    'STRING_VALUE',
    /* more items */
  ],
  NotDeviceUserAgents: [
    'STRING_VALUE',
    /* more items */
  ]
};
workmail.updateMobileDeviceAccessRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The WorkMail organization under which the rule will be updated.

    • MobileDeviceAccessRuleId — (String)

      The identifier of the rule to be updated.

    • Name — (String)

      The updated rule name.

    • Description — (String)

      The updated rule description.

    • Effect — (String)

      The effect of the rule when it matches. Allowed values are ALLOW or DENY.

      Possible values include:
      • "ALLOW"
      • "DENY"
    • DeviceTypes — (Array<String>)

      Device types that the updated rule will match.

    • NotDeviceTypes — (Array<String>)

      Device types that the updated rule will not match. All other device types will match.

    • DeviceModels — (Array<String>)

      Device models that the updated rule will match.

    • NotDeviceModels — (Array<String>)

      Device models that the updated rule will not match. All other device models will match.

    • DeviceOperatingSystems — (Array<String>)

      Device operating systems that the updated rule will match.

    • NotDeviceOperatingSystems — (Array<String>)

      Device operating systems that the updated rule will not match. All other device operating systems will match.

    • DeviceUserAgents — (Array<String>)

      User agents that the updated rule will match.

    • NotDeviceUserAgents — (Array<String>)

      User agents that the updated rule will not match. All other user agents will match.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updatePrimaryEmailAddress(params = {}, callback) ⇒ AWS.Request

Updates the primary email for a user, group, or resource. 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.

Service Reference:

Examples:

Calling the updatePrimaryEmailAddress operation

var params = {
  Email: 'STRING_VALUE', /* required */
  EntityId: 'STRING_VALUE', /* required */
  OrganizationId: 'STRING_VALUE' /* required */
};
workmail.updatePrimaryEmailAddress(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The organization that contains the user, group, or resource to update.

    • EntityId — (String)

      The user, group, or resource to update.

      The identifier can accept UseriD, ResourceId, or GroupId, Username, Resourcename, or Groupname, or email. The following identity formats are available:

      • Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: entity@domain.tld

      • Entity name: entity

    • Email — (String)

      The value of the email to be updated as primary.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateResource(params = {}, callback) ⇒ AWS.Request

Updates data for the resource. To have the latest information, it must be preceded by a DescribeResource call. The dataset in the request should be the one expected when performing another DescribeResource call.

Service Reference:

Examples:

Calling the updateResource operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  ResourceId: 'STRING_VALUE', /* required */
  BookingOptions: {
    AutoAcceptRequests: true || false,
    AutoDeclineConflictingRequests: true || false,
    AutoDeclineRecurringRequests: true || false
  },
  Description: 'STRING_VALUE',
  HiddenFromGlobalAddressList: true || false,
  Name: 'STRING_VALUE',
  Type: ROOM | EQUIPMENT
};
workmail.updateResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier associated with the organization for which the resource is updated.

    • ResourceId — (String)

      The identifier of the resource to be updated.

      The identifier can accept ResourceId, Resourcename, or email. The following identity formats are available:

      • Resource ID: r-0123456789a0123456789b0123456789

      • Email address: resource@domain.tld

      • Resource name: resource

    • Name — (String)

      The name of the resource to be updated.

    • BookingOptions — (map)

      The resource's booking options to be updated.

      • AutoAcceptRequests — (Boolean)

        The resource's ability to automatically reply to requests. If disabled, delegates must be associated to the resource.

      • AutoDeclineRecurringRequests — (Boolean)

        The resource's ability to automatically decline any recurring requests.

      • AutoDeclineConflictingRequests — (Boolean)

        The resource's ability to automatically decline any conflicting requests.

    • Description — (String)

      Updates the resource description.

    • Type — (String)

      Updates the resource type.

      Possible values include:
      • "ROOM"
      • "EQUIPMENT"
    • HiddenFromGlobalAddressList — (Boolean)

      If enabled, the resource is hidden from the global address list.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateUser(params = {}, callback) ⇒ AWS.Request

Updates data for the user. To have the latest information, it must be preceded by a DescribeUser call. The dataset in the request should be the one expected when performing another DescribeUser call.

Service Reference:

Examples:

Calling the updateUser operation

var params = {
  OrganizationId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE', /* required */
  City: 'STRING_VALUE',
  Company: 'STRING_VALUE',
  Country: 'STRING_VALUE',
  Department: 'STRING_VALUE',
  DisplayName: 'STRING_VALUE',
  FirstName: 'STRING_VALUE',
  HiddenFromGlobalAddressList: true || false,
  Initials: 'STRING_VALUE',
  JobTitle: 'STRING_VALUE',
  LastName: 'STRING_VALUE',
  Office: 'STRING_VALUE',
  Role: USER | RESOURCE | SYSTEM_USER | REMOTE_USER,
  Street: 'STRING_VALUE',
  Telephone: 'STRING_VALUE',
  ZipCode: 'STRING_VALUE'
};
workmail.updateUser(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OrganizationId — (String)

      The identifier for the organization under which the user exists.

    • UserId — (String)

      The identifier for the user to be updated.

      The identifier can be the UserId, Username, or email. The following identity formats are available:

      • User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234

      • Email address: user@domain.tld

      • User name: user

    • Role — (String)

      Updates the user role.

      You cannot pass SYSTEM_USER or RESOURCE.

      Possible values include:
      • "USER"
      • "RESOURCE"
      • "SYSTEM_USER"
      • "REMOTE_USER"
    • DisplayName — (String)

      Updates the display name of the user.

    • FirstName — (String)

      Updates the user's first name.

    • LastName — (String)

      Updates the user's last name.

    • HiddenFromGlobalAddressList — (Boolean)

      If enabled, the user is hidden from the global address list.

    • Initials — (String)

      Updates the user's initials.

    • Telephone — (String)

      Updates the user's contact details.

    • Street — (String)

      Updates the user's street address.

    • JobTitle — (String)

      Updates the user's job title.

    • City — (String)

      Updates the user's city.

    • Company — (String)

      Updates the user's company.

    • ZipCode — (String)

      Updates the user's zipcode.

    • Department — (String)

      Updates the user's department.

    • Country — (String)

      Updates the user's country.

    • Office — (String)

      Updates the user's office.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.