/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the workmail-2017-10-01.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.WorkMail.Model;
using Amazon.WorkMail.Model.Internal.MarshallTransformations;
using Amazon.WorkMail.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.WorkMail
{
///
/// Implementation for accessing WorkMail
///
/// 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.
///
///
public partial class AmazonWorkMailClient : AmazonServiceClient, IAmazonWorkMail
{
private static IServiceMetadata serviceMetadata = new AmazonWorkMailMetadata();
private IWorkMailPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IWorkMailPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new WorkMailPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
///
/// Constructs AmazonWorkMailClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonWorkMailClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonWorkMailConfig()) { }
///
/// Constructs AmazonWorkMailClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonWorkMailClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonWorkMailConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonWorkMailClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonWorkMailClient Configuration Object
public AmazonWorkMailClient(AmazonWorkMailConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonWorkMailClient with AWS Credentials
///
/// AWS Credentials
public AmazonWorkMailClient(AWSCredentials credentials)
: this(credentials, new AmazonWorkMailConfig())
{
}
///
/// Constructs AmazonWorkMailClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonWorkMailClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonWorkMailConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonWorkMailClient with AWS Credentials and an
/// AmazonWorkMailClient Configuration object.
///
/// AWS Credentials
/// The AmazonWorkMailClient Configuration Object
public AmazonWorkMailClient(AWSCredentials credentials, AmazonWorkMailConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonWorkMailClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonWorkMailClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonWorkMailConfig())
{
}
///
/// Constructs AmazonWorkMailClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonWorkMailClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonWorkMailConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonWorkMailClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonWorkMailClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonWorkMailClient Configuration Object
public AmazonWorkMailClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonWorkMailConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonWorkMailClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonWorkMailClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonWorkMailConfig())
{
}
///
/// Constructs AmazonWorkMailClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonWorkMailClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonWorkMailConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonWorkMailClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonWorkMailClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonWorkMailClient Configuration Object
public AmazonWorkMailClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonWorkMailConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonWorkMailEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region AssociateDelegateToResource
///
/// Adds a member (user or group) to the resource's set of delegates.
///
/// Container for the necessary parameters to execute the AssociateDelegateToResource service method.
///
/// The response from the AssociateDelegateToResource service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for AssociateDelegateToResource Operation
public virtual AssociateDelegateToResourceResponse AssociateDelegateToResource(AssociateDelegateToResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateDelegateToResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateDelegateToResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds a member (user or group) to the resource's set of delegates.
///
/// Container for the necessary parameters to execute the AssociateDelegateToResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AssociateDelegateToResource service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for AssociateDelegateToResource Operation
public virtual Task AssociateDelegateToResourceAsync(AssociateDelegateToResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateDelegateToResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateDelegateToResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region AssociateMemberToGroup
///
/// Adds a member (user or group) to the group's set.
///
/// Container for the necessary parameters to execute the AssociateMemberToGroup service method.
///
/// The response from the AssociateMemberToGroup service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for AssociateMemberToGroup Operation
public virtual AssociateMemberToGroupResponse AssociateMemberToGroup(AssociateMemberToGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateMemberToGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateMemberToGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds a member (user or group) to the group's set.
///
/// Container for the necessary parameters to execute the AssociateMemberToGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AssociateMemberToGroup service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for AssociateMemberToGroup Operation
public virtual Task AssociateMemberToGroupAsync(AssociateMemberToGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateMemberToGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateMemberToGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region AssumeImpersonationRole
///
/// Assumes an impersonation role for the given WorkMail organization. This method returns
/// an authentication token you can use to make impersonated calls.
///
/// Container for the necessary parameters to execute the AssumeImpersonationRole service method.
///
/// The response from the AssumeImpersonationRole service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for AssumeImpersonationRole Operation
public virtual AssumeImpersonationRoleResponse AssumeImpersonationRole(AssumeImpersonationRoleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssumeImpersonationRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssumeImpersonationRoleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Assumes an impersonation role for the given WorkMail organization. This method returns
/// an authentication token you can use to make impersonated calls.
///
/// Container for the necessary parameters to execute the AssumeImpersonationRole service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AssumeImpersonationRole service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for AssumeImpersonationRole Operation
public virtual Task AssumeImpersonationRoleAsync(AssumeImpersonationRoleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssumeImpersonationRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssumeImpersonationRoleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CancelMailboxExportJob
///
/// Cancels a mailbox export job.
///
///
///
/// If the mailbox export job is near completion, it might not be possible to cancel it.
///
///
///
/// Container for the necessary parameters to execute the CancelMailboxExportJob service method.
///
/// The response from the CancelMailboxExportJob service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for CancelMailboxExportJob Operation
public virtual CancelMailboxExportJobResponse CancelMailboxExportJob(CancelMailboxExportJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelMailboxExportJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelMailboxExportJobResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Cancels a mailbox export job.
///
///
///
/// If the mailbox export job is near completion, it might not be possible to cancel it.
///
///
///
/// Container for the necessary parameters to execute the CancelMailboxExportJob service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CancelMailboxExportJob service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for CancelMailboxExportJob Operation
public virtual Task CancelMailboxExportJobAsync(CancelMailboxExportJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelMailboxExportJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelMailboxExportJobResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateAlias
///
/// Adds an alias to the set of a given member (user or group) of WorkMail.
///
/// Container for the necessary parameters to execute the CreateAlias service method.
///
/// The response from the CreateAlias service method, as returned by WorkMail.
///
/// The email address that you're trying to assign is already created for a different
/// user, group, or resource.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// The domain specified is not found in your organization.
///
///
/// After a domain has been added to the organization, it must be verified. The domain
/// is not yet verified.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for CreateAlias Operation
public virtual CreateAliasResponse CreateAlias(CreateAliasRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAliasRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAliasResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds an alias to the set of a given member (user or group) of WorkMail.
///
/// Container for the necessary parameters to execute the CreateAlias service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateAlias service method, as returned by WorkMail.
///
/// The email address that you're trying to assign is already created for a different
/// user, group, or resource.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// The domain specified is not found in your organization.
///
///
/// After a domain has been added to the organization, it must be verified. The domain
/// is not yet verified.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for CreateAlias Operation
public virtual Task CreateAliasAsync(CreateAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAliasRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAliasResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateAvailabilityConfiguration
///
/// Creates an AvailabilityConfiguration
for the given WorkMail organization
/// and domain.
///
/// Container for the necessary parameters to execute the CreateAvailabilityConfiguration service method.
///
/// The response from the CreateAvailabilityConfiguration service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// The user, group, or resource name isn't unique in WorkMail.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for CreateAvailabilityConfiguration Operation
public virtual CreateAvailabilityConfigurationResponse CreateAvailabilityConfiguration(CreateAvailabilityConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAvailabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAvailabilityConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an AvailabilityConfiguration
for the given WorkMail organization
/// and domain.
///
/// Container for the necessary parameters to execute the CreateAvailabilityConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateAvailabilityConfiguration service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// The user, group, or resource name isn't unique in WorkMail.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for CreateAvailabilityConfiguration Operation
public virtual Task CreateAvailabilityConfigurationAsync(CreateAvailabilityConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAvailabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAvailabilityConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateGroup
///
/// Creates a group that can be used in WorkMail by calling the RegisterToWorkMail
/// operation.
///
/// Container for the necessary parameters to execute the CreateGroup service method.
///
/// The response from the CreateGroup service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The user, group, or resource name isn't unique in WorkMail.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// This user, group, or resource name is not allowed in WorkMail.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for CreateGroup Operation
public virtual CreateGroupResponse CreateGroup(CreateGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a group that can be used in WorkMail by calling the RegisterToWorkMail
/// operation.
///
/// Container for the necessary parameters to execute the CreateGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateGroup service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The user, group, or resource name isn't unique in WorkMail.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// This user, group, or resource name is not allowed in WorkMail.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for CreateGroup Operation
public virtual Task CreateGroupAsync(CreateGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateImpersonationRole
///
/// 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.
///
///
/// Container for the necessary parameters to execute the CreateImpersonationRole service method.
///
/// The response from the CreateImpersonationRole service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for CreateImpersonationRole Operation
public virtual CreateImpersonationRoleResponse CreateImpersonationRole(CreateImpersonationRoleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateImpersonationRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateImpersonationRoleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the CreateImpersonationRole service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateImpersonationRole service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for CreateImpersonationRole Operation
public virtual Task CreateImpersonationRoleAsync(CreateImpersonationRoleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateImpersonationRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateImpersonationRoleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateMobileDeviceAccessRule
///
/// Creates a new mobile device access rule for the specified WorkMail organization.
///
/// Container for the necessary parameters to execute the CreateMobileDeviceAccessRule service method.
///
/// The response from the CreateMobileDeviceAccessRule service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for CreateMobileDeviceAccessRule Operation
public virtual CreateMobileDeviceAccessRuleResponse CreateMobileDeviceAccessRule(CreateMobileDeviceAccessRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateMobileDeviceAccessRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateMobileDeviceAccessRuleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new mobile device access rule for the specified WorkMail organization.
///
/// Container for the necessary parameters to execute the CreateMobileDeviceAccessRule service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateMobileDeviceAccessRule service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for CreateMobileDeviceAccessRule Operation
public virtual Task CreateMobileDeviceAccessRuleAsync(CreateMobileDeviceAccessRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateMobileDeviceAccessRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateMobileDeviceAccessRuleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateOrganization
///
/// 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.
///
///
/// Container for the necessary parameters to execute the CreateOrganization service method.
///
/// The response from the CreateOrganization service method, as returned by WorkMail.
///
/// The directory is already in use by another WorkMail organization in the same account
/// and Region.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// The user, group, or resource name isn't unique in WorkMail.
///
/// REST API Reference for CreateOrganization Operation
public virtual CreateOrganizationResponse CreateOrganization(CreateOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateOrganizationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the CreateOrganization service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateOrganization service method, as returned by WorkMail.
///
/// The directory is already in use by another WorkMail organization in the same account
/// and Region.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// The user, group, or resource name isn't unique in WorkMail.
///
/// REST API Reference for CreateOrganization Operation
public virtual Task CreateOrganizationAsync(CreateOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateOrganizationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateResource
///
/// Creates a new WorkMail resource.
///
/// Container for the necessary parameters to execute the CreateResource service method.
///
/// The response from the CreateResource service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The user, group, or resource name isn't unique in WorkMail.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// This user, group, or resource name is not allowed in WorkMail.
///
/// REST API Reference for CreateResource Operation
public virtual CreateResourceResponse CreateResource(CreateResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new WorkMail resource.
///
/// Container for the necessary parameters to execute the CreateResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateResource service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The user, group, or resource name isn't unique in WorkMail.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// This user, group, or resource name is not allowed in WorkMail.
///
/// REST API Reference for CreateResource Operation
public virtual Task CreateResourceAsync(CreateResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateUser
///
/// Creates a user who can be used in WorkMail by calling the RegisterToWorkMail
/// operation.
///
/// Container for the necessary parameters to execute the CreateUser service method.
///
/// The response from the CreateUser service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The supplied password doesn't match the minimum security constraints, such as length
/// or use of special characters.
///
///
/// The user, group, or resource name isn't unique in WorkMail.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// This user, group, or resource name is not allowed in WorkMail.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for CreateUser Operation
public virtual CreateUserResponse CreateUser(CreateUserRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateUserRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateUserResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a user who can be used in WorkMail by calling the RegisterToWorkMail
/// operation.
///
/// Container for the necessary parameters to execute the CreateUser service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateUser service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The supplied password doesn't match the minimum security constraints, such as length
/// or use of special characters.
///
///
/// The user, group, or resource name isn't unique in WorkMail.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// This user, group, or resource name is not allowed in WorkMail.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for CreateUser Operation
public virtual Task CreateUserAsync(CreateUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateUserRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateUserResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAccessControlRule
///
/// Deletes an access control rule for the specified WorkMail organization.
///
///
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the DeleteAccessControlRule service method.
///
/// The response from the DeleteAccessControlRule service method, as returned by WorkMail.
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteAccessControlRule Operation
public virtual DeleteAccessControlRuleResponse DeleteAccessControlRule(DeleteAccessControlRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAccessControlRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAccessControlRuleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an access control rule for the specified WorkMail organization.
///
///
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the DeleteAccessControlRule service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteAccessControlRule service method, as returned by WorkMail.
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteAccessControlRule Operation
public virtual Task DeleteAccessControlRuleAsync(DeleteAccessControlRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAccessControlRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAccessControlRuleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAlias
///
/// Remove one or more specified aliases from a set of aliases for a given user.
///
/// Container for the necessary parameters to execute the DeleteAlias service method.
///
/// The response from the DeleteAlias service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteAlias Operation
public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAliasRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAliasResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Remove one or more specified aliases from a set of aliases for a given user.
///
/// Container for the necessary parameters to execute the DeleteAlias service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteAlias service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteAlias Operation
public virtual Task DeleteAliasAsync(DeleteAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAliasRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAliasResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAvailabilityConfiguration
///
/// Deletes the AvailabilityConfiguration
for the given WorkMail organization
/// and domain.
///
/// Container for the necessary parameters to execute the DeleteAvailabilityConfiguration service method.
///
/// The response from the DeleteAvailabilityConfiguration service method, as returned by WorkMail.
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteAvailabilityConfiguration Operation
public virtual DeleteAvailabilityConfigurationResponse DeleteAvailabilityConfiguration(DeleteAvailabilityConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAvailabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAvailabilityConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the AvailabilityConfiguration
for the given WorkMail organization
/// and domain.
///
/// Container for the necessary parameters to execute the DeleteAvailabilityConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteAvailabilityConfiguration service method, as returned by WorkMail.
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteAvailabilityConfiguration Operation
public virtual Task DeleteAvailabilityConfigurationAsync(DeleteAvailabilityConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAvailabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAvailabilityConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteEmailMonitoringConfiguration
///
/// Deletes the email monitoring configuration for a specified organization.
///
/// Container for the necessary parameters to execute the DeleteEmailMonitoringConfiguration service method.
///
/// The response from the DeleteEmailMonitoringConfiguration service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteEmailMonitoringConfiguration Operation
public virtual DeleteEmailMonitoringConfigurationResponse DeleteEmailMonitoringConfiguration(DeleteEmailMonitoringConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEmailMonitoringConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEmailMonitoringConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the email monitoring configuration for a specified organization.
///
/// Container for the necessary parameters to execute the DeleteEmailMonitoringConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteEmailMonitoringConfiguration service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteEmailMonitoringConfiguration Operation
public virtual Task DeleteEmailMonitoringConfigurationAsync(DeleteEmailMonitoringConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEmailMonitoringConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEmailMonitoringConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteGroup
///
/// Deletes a group from WorkMail.
///
/// Container for the necessary parameters to execute the DeleteGroup service method.
///
/// The response from the DeleteGroup service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for DeleteGroup Operation
public virtual DeleteGroupResponse DeleteGroup(DeleteGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a group from WorkMail.
///
/// Container for the necessary parameters to execute the DeleteGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteGroup service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for DeleteGroup Operation
public virtual Task DeleteGroupAsync(DeleteGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteImpersonationRole
///
/// Deletes an impersonation role for the given WorkMail organization.
///
/// Container for the necessary parameters to execute the DeleteImpersonationRole service method.
///
/// The response from the DeleteImpersonationRole service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteImpersonationRole Operation
public virtual DeleteImpersonationRoleResponse DeleteImpersonationRole(DeleteImpersonationRoleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteImpersonationRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteImpersonationRoleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an impersonation role for the given WorkMail organization.
///
/// Container for the necessary parameters to execute the DeleteImpersonationRole service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteImpersonationRole service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteImpersonationRole Operation
public virtual Task DeleteImpersonationRoleAsync(DeleteImpersonationRoleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteImpersonationRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteImpersonationRoleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteMailboxPermissions
///
/// Deletes permissions granted to a member (user or group).
///
/// Container for the necessary parameters to execute the DeleteMailboxPermissions service method.
///
/// The response from the DeleteMailboxPermissions service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteMailboxPermissions Operation
public virtual DeleteMailboxPermissionsResponse DeleteMailboxPermissions(DeleteMailboxPermissionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMailboxPermissionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMailboxPermissionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes permissions granted to a member (user or group).
///
/// Container for the necessary parameters to execute the DeleteMailboxPermissions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteMailboxPermissions service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteMailboxPermissions Operation
public virtual Task DeleteMailboxPermissionsAsync(DeleteMailboxPermissionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMailboxPermissionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMailboxPermissionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteMobileDeviceAccessOverride
///
/// Deletes the mobile device access override for the given WorkMail organization, user,
/// and device.
///
///
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the DeleteMobileDeviceAccessOverride service method.
///
/// The response from the DeleteMobileDeviceAccessOverride service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteMobileDeviceAccessOverride Operation
public virtual DeleteMobileDeviceAccessOverrideResponse DeleteMobileDeviceAccessOverride(DeleteMobileDeviceAccessOverrideRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMobileDeviceAccessOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMobileDeviceAccessOverrideResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the mobile device access override for the given WorkMail organization, user,
/// and device.
///
///
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the DeleteMobileDeviceAccessOverride service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteMobileDeviceAccessOverride service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteMobileDeviceAccessOverride Operation
public virtual Task DeleteMobileDeviceAccessOverrideAsync(DeleteMobileDeviceAccessOverrideRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMobileDeviceAccessOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMobileDeviceAccessOverrideResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteMobileDeviceAccessRule
///
/// Deletes a mobile device access rule for the specified WorkMail organization.
///
///
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the DeleteMobileDeviceAccessRule service method.
///
/// The response from the DeleteMobileDeviceAccessRule service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteMobileDeviceAccessRule Operation
public virtual DeleteMobileDeviceAccessRuleResponse DeleteMobileDeviceAccessRule(DeleteMobileDeviceAccessRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMobileDeviceAccessRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMobileDeviceAccessRuleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a mobile device access rule for the specified WorkMail organization.
///
///
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the DeleteMobileDeviceAccessRule service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteMobileDeviceAccessRule service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteMobileDeviceAccessRule Operation
public virtual Task DeleteMobileDeviceAccessRuleAsync(DeleteMobileDeviceAccessRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMobileDeviceAccessRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMobileDeviceAccessRuleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteOrganization
///
/// 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.
///
/// Container for the necessary parameters to execute the DeleteOrganization service method.
///
/// The response from the DeleteOrganization service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteOrganization Operation
public virtual DeleteOrganizationResponse DeleteOrganization(DeleteOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteOrganizationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the DeleteOrganization service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteOrganization service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteOrganization Operation
public virtual Task DeleteOrganizationAsync(DeleteOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteOrganizationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteResource
///
/// Deletes the specified resource.
///
/// Container for the necessary parameters to execute the DeleteResource service method.
///
/// The response from the DeleteResource service method, as returned by WorkMail.
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteResource Operation
public virtual DeleteResourceResponse DeleteResource(DeleteResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the specified resource.
///
/// Container for the necessary parameters to execute the DeleteResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteResource service method, as returned by WorkMail.
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteResource Operation
public virtual Task DeleteResourceAsync(DeleteResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteRetentionPolicy
///
/// Deletes the specified retention policy from the specified organization.
///
/// Container for the necessary parameters to execute the DeleteRetentionPolicy service method.
///
/// The response from the DeleteRetentionPolicy service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteRetentionPolicy Operation
public virtual DeleteRetentionPolicyResponse DeleteRetentionPolicy(DeleteRetentionPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRetentionPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRetentionPolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the specified retention policy from the specified organization.
///
/// Container for the necessary parameters to execute the DeleteRetentionPolicy service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteRetentionPolicy service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeleteRetentionPolicy Operation
public virtual Task DeleteRetentionPolicyAsync(DeleteRetentionPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRetentionPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRetentionPolicyResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteUser
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteUser service method.
///
/// The response from the DeleteUser service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for DeleteUser Operation
public virtual DeleteUserResponse DeleteUser(DeleteUserRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteUserRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteUserResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteUser service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteUser service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for DeleteUser Operation
public virtual Task DeleteUserAsync(DeleteUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteUserRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteUserResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeregisterFromWorkMail
///
/// 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.
///
/// Container for the necessary parameters to execute the DeregisterFromWorkMail service method.
///
/// The response from the DeregisterFromWorkMail service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeregisterFromWorkMail Operation
public virtual DeregisterFromWorkMailResponse DeregisterFromWorkMail(DeregisterFromWorkMailRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterFromWorkMailRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterFromWorkMailResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the DeregisterFromWorkMail service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeregisterFromWorkMail service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeregisterFromWorkMail Operation
public virtual Task DeregisterFromWorkMailAsync(DeregisterFromWorkMailRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterFromWorkMailRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterFromWorkMailResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeregisterMailDomain
///
/// 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.
///
/// Container for the necessary parameters to execute the DeregisterMailDomain service method.
///
/// The response from the DeregisterMailDomain service method, as returned by WorkMail.
///
/// You SES configuration has customizations that WorkMail cannot save. The error message
/// lists the invalid setting. For examples of invalid settings, refer to CreateReceiptRule.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The domain you're trying to change is in use by another user or organization in your
/// account. See the error message for details.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeregisterMailDomain Operation
public virtual DeregisterMailDomainResponse DeregisterMailDomain(DeregisterMailDomainRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterMailDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterMailDomainResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the DeregisterMailDomain service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeregisterMailDomain service method, as returned by WorkMail.
///
/// You SES configuration has customizations that WorkMail cannot save. The error message
/// lists the invalid setting. For examples of invalid settings, refer to CreateReceiptRule.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The domain you're trying to change is in use by another user or organization in your
/// account. See the error message for details.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DeregisterMailDomain Operation
public virtual Task DeregisterMailDomainAsync(DeregisterMailDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterMailDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterMailDomainResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeEmailMonitoringConfiguration
///
/// Describes the current email monitoring configuration for a specified organization.
///
/// Container for the necessary parameters to execute the DescribeEmailMonitoringConfiguration service method.
///
/// The response from the DescribeEmailMonitoringConfiguration service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for DescribeEmailMonitoringConfiguration Operation
public virtual DescribeEmailMonitoringConfigurationResponse DescribeEmailMonitoringConfiguration(DescribeEmailMonitoringConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEmailMonitoringConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEmailMonitoringConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes the current email monitoring configuration for a specified organization.
///
/// Container for the necessary parameters to execute the DescribeEmailMonitoringConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeEmailMonitoringConfiguration service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for DescribeEmailMonitoringConfiguration Operation
public virtual Task DescribeEmailMonitoringConfigurationAsync(DescribeEmailMonitoringConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEmailMonitoringConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEmailMonitoringConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeGroup
///
/// Returns the data available for the group.
///
/// Container for the necessary parameters to execute the DescribeGroup service method.
///
/// The response from the DescribeGroup service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DescribeGroup Operation
public virtual DescribeGroupResponse DescribeGroup(DescribeGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the data available for the group.
///
/// Container for the necessary parameters to execute the DescribeGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeGroup service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DescribeGroup Operation
public virtual Task DescribeGroupAsync(DescribeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeInboundDmarcSettings
///
/// Lists the settings in a DMARC policy for a specified organization.
///
/// Container for the necessary parameters to execute the DescribeInboundDmarcSettings service method.
///
/// The response from the DescribeInboundDmarcSettings service method, as returned by WorkMail.
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DescribeInboundDmarcSettings Operation
public virtual DescribeInboundDmarcSettingsResponse DescribeInboundDmarcSettings(DescribeInboundDmarcSettingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeInboundDmarcSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeInboundDmarcSettingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the settings in a DMARC policy for a specified organization.
///
/// Container for the necessary parameters to execute the DescribeInboundDmarcSettings service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeInboundDmarcSettings service method, as returned by WorkMail.
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DescribeInboundDmarcSettings Operation
public virtual Task DescribeInboundDmarcSettingsAsync(DescribeInboundDmarcSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeInboundDmarcSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeInboundDmarcSettingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeMailboxExportJob
///
/// Describes the current status of a mailbox export job.
///
/// Container for the necessary parameters to execute the DescribeMailboxExportJob service method.
///
/// The response from the DescribeMailboxExportJob service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DescribeMailboxExportJob Operation
public virtual DescribeMailboxExportJobResponse DescribeMailboxExportJob(DescribeMailboxExportJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeMailboxExportJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeMailboxExportJobResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes the current status of a mailbox export job.
///
/// Container for the necessary parameters to execute the DescribeMailboxExportJob service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeMailboxExportJob service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DescribeMailboxExportJob Operation
public virtual Task DescribeMailboxExportJobAsync(DescribeMailboxExportJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeMailboxExportJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeMailboxExportJobResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeOrganization
///
/// Provides more information regarding a given organization based on its identifier.
///
/// Container for the necessary parameters to execute the DescribeOrganization service method.
///
/// The response from the DescribeOrganization service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
/// REST API Reference for DescribeOrganization Operation
public virtual DescribeOrganizationResponse DescribeOrganization(DescribeOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeOrganizationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Provides more information regarding a given organization based on its identifier.
///
/// Container for the necessary parameters to execute the DescribeOrganization service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeOrganization service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
/// REST API Reference for DescribeOrganization Operation
public virtual Task DescribeOrganizationAsync(DescribeOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeOrganizationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeResource
///
/// Returns the data available for the resource.
///
/// Container for the necessary parameters to execute the DescribeResource service method.
///
/// The response from the DescribeResource service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DescribeResource Operation
public virtual DescribeResourceResponse DescribeResource(DescribeResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the data available for the resource.
///
/// Container for the necessary parameters to execute the DescribeResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeResource service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DescribeResource Operation
public virtual Task DescribeResourceAsync(DescribeResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeUser
///
/// Provides information regarding the user.
///
/// Container for the necessary parameters to execute the DescribeUser service method.
///
/// The response from the DescribeUser service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DescribeUser Operation
public virtual DescribeUserResponse DescribeUser(DescribeUserRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeUserRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeUserResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Provides information regarding the user.
///
/// Container for the necessary parameters to execute the DescribeUser service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeUser service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DescribeUser Operation
public virtual Task DescribeUserAsync(DescribeUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeUserRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeUserResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisassociateDelegateFromResource
///
/// Removes a member from the resource's set of delegates.
///
/// Container for the necessary parameters to execute the DisassociateDelegateFromResource service method.
///
/// The response from the DisassociateDelegateFromResource service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DisassociateDelegateFromResource Operation
public virtual DisassociateDelegateFromResourceResponse DisassociateDelegateFromResource(DisassociateDelegateFromResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateDelegateFromResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateDelegateFromResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes a member from the resource's set of delegates.
///
/// Container for the necessary parameters to execute the DisassociateDelegateFromResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisassociateDelegateFromResource service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for DisassociateDelegateFromResource Operation
public virtual Task DisassociateDelegateFromResourceAsync(DisassociateDelegateFromResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateDelegateFromResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateDelegateFromResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisassociateMemberFromGroup
///
/// Removes a member from a group.
///
/// Container for the necessary parameters to execute the DisassociateMemberFromGroup service method.
///
/// The response from the DisassociateMemberFromGroup service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for DisassociateMemberFromGroup Operation
public virtual DisassociateMemberFromGroupResponse DisassociateMemberFromGroup(DisassociateMemberFromGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateMemberFromGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateMemberFromGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes a member from a group.
///
/// Container for the necessary parameters to execute the DisassociateMemberFromGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisassociateMemberFromGroup service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for DisassociateMemberFromGroup Operation
public virtual Task DisassociateMemberFromGroupAsync(DisassociateMemberFromGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateMemberFromGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateMemberFromGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetAccessControlEffect
///
/// 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.
///
/// Container for the necessary parameters to execute the GetAccessControlEffect service method.
///
/// The response from the GetAccessControlEffect service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for GetAccessControlEffect Operation
public virtual GetAccessControlEffectResponse GetAccessControlEffect(GetAccessControlEffectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAccessControlEffectRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAccessControlEffectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the GetAccessControlEffect service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetAccessControlEffect service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for GetAccessControlEffect Operation
public virtual Task GetAccessControlEffectAsync(GetAccessControlEffectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAccessControlEffectRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAccessControlEffectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetDefaultRetentionPolicy
///
/// Gets the default retention policy details for the specified organization.
///
/// Container for the necessary parameters to execute the GetDefaultRetentionPolicy service method.
///
/// The response from the GetDefaultRetentionPolicy service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for GetDefaultRetentionPolicy Operation
public virtual GetDefaultRetentionPolicyResponse GetDefaultRetentionPolicy(GetDefaultRetentionPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDefaultRetentionPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDefaultRetentionPolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets the default retention policy details for the specified organization.
///
/// Container for the necessary parameters to execute the GetDefaultRetentionPolicy service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetDefaultRetentionPolicy service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for GetDefaultRetentionPolicy Operation
public virtual Task GetDefaultRetentionPolicyAsync(GetDefaultRetentionPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDefaultRetentionPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDefaultRetentionPolicyResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetImpersonationRole
///
/// Gets the impersonation role details for the given WorkMail organization.
///
/// Container for the necessary parameters to execute the GetImpersonationRole service method.
///
/// The response from the GetImpersonationRole service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for GetImpersonationRole Operation
public virtual GetImpersonationRoleResponse GetImpersonationRole(GetImpersonationRoleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetImpersonationRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetImpersonationRoleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets the impersonation role details for the given WorkMail organization.
///
/// Container for the necessary parameters to execute the GetImpersonationRole service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetImpersonationRole service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for GetImpersonationRole Operation
public virtual Task GetImpersonationRoleAsync(GetImpersonationRoleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetImpersonationRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetImpersonationRoleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetImpersonationRoleEffect
///
/// Tests whether the given impersonation role can impersonate a target user.
///
/// Container for the necessary parameters to execute the GetImpersonationRoleEffect service method.
///
/// The response from the GetImpersonationRoleEffect service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for GetImpersonationRoleEffect Operation
public virtual GetImpersonationRoleEffectResponse GetImpersonationRoleEffect(GetImpersonationRoleEffectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetImpersonationRoleEffectRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetImpersonationRoleEffectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Tests whether the given impersonation role can impersonate a target user.
///
/// Container for the necessary parameters to execute the GetImpersonationRoleEffect service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetImpersonationRoleEffect service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for GetImpersonationRoleEffect Operation
public virtual Task GetImpersonationRoleEffectAsync(GetImpersonationRoleEffectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetImpersonationRoleEffectRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetImpersonationRoleEffectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetMailboxDetails
///
/// Requests a user's mailbox details for a specified organization and user.
///
/// Container for the necessary parameters to execute the GetMailboxDetails service method.
///
/// The response from the GetMailboxDetails service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for GetMailboxDetails Operation
public virtual GetMailboxDetailsResponse GetMailboxDetails(GetMailboxDetailsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMailboxDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMailboxDetailsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Requests a user's mailbox details for a specified organization and user.
///
/// Container for the necessary parameters to execute the GetMailboxDetails service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetMailboxDetails service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for GetMailboxDetails Operation
public virtual Task GetMailboxDetailsAsync(GetMailboxDetailsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMailboxDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMailboxDetailsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetMailDomain
///
/// Gets details for a mail domain, including domain records required to configure your
/// domain with recommended security.
///
/// Container for the necessary parameters to execute the GetMailDomain service method.
///
/// The response from the GetMailDomain service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The domain specified is not found in your organization.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for GetMailDomain Operation
public virtual GetMailDomainResponse GetMailDomain(GetMailDomainRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMailDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMailDomainResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets details for a mail domain, including domain records required to configure your
/// domain with recommended security.
///
/// Container for the necessary parameters to execute the GetMailDomain service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetMailDomain service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The domain specified is not found in your organization.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for GetMailDomain Operation
public virtual Task GetMailDomainAsync(GetMailDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMailDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMailDomainResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetMobileDeviceAccessEffect
///
/// 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.
///
/// Container for the necessary parameters to execute the GetMobileDeviceAccessEffect service method.
///
/// The response from the GetMobileDeviceAccessEffect service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for GetMobileDeviceAccessEffect Operation
public virtual GetMobileDeviceAccessEffectResponse GetMobileDeviceAccessEffect(GetMobileDeviceAccessEffectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMobileDeviceAccessEffectRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMobileDeviceAccessEffectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the GetMobileDeviceAccessEffect service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetMobileDeviceAccessEffect service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for GetMobileDeviceAccessEffect Operation
public virtual Task GetMobileDeviceAccessEffectAsync(GetMobileDeviceAccessEffectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMobileDeviceAccessEffectRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMobileDeviceAccessEffectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetMobileDeviceAccessOverride
///
/// Gets the mobile device access override for the given WorkMail organization, user,
/// and device.
///
/// Container for the necessary parameters to execute the GetMobileDeviceAccessOverride service method.
///
/// The response from the GetMobileDeviceAccessOverride service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for GetMobileDeviceAccessOverride Operation
public virtual GetMobileDeviceAccessOverrideResponse GetMobileDeviceAccessOverride(GetMobileDeviceAccessOverrideRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMobileDeviceAccessOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMobileDeviceAccessOverrideResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets the mobile device access override for the given WorkMail organization, user,
/// and device.
///
/// Container for the necessary parameters to execute the GetMobileDeviceAccessOverride service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetMobileDeviceAccessOverride service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for GetMobileDeviceAccessOverride Operation
public virtual Task GetMobileDeviceAccessOverrideAsync(GetMobileDeviceAccessOverrideRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMobileDeviceAccessOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMobileDeviceAccessOverrideResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAccessControlRules
///
/// Lists the access control rules for the specified organization.
///
/// Container for the necessary parameters to execute the ListAccessControlRules service method.
///
/// The response from the ListAccessControlRules service method, as returned by WorkMail.
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListAccessControlRules Operation
public virtual ListAccessControlRulesResponse ListAccessControlRules(ListAccessControlRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAccessControlRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAccessControlRulesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the access control rules for the specified organization.
///
/// Container for the necessary parameters to execute the ListAccessControlRules service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAccessControlRules service method, as returned by WorkMail.
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListAccessControlRules Operation
public virtual Task ListAccessControlRulesAsync(ListAccessControlRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAccessControlRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAccessControlRulesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAliases
///
/// Creates a paginated call to list the aliases associated with a given entity.
///
/// Container for the necessary parameters to execute the ListAliases service method.
///
/// The response from the ListAliases service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListAliases Operation
public virtual ListAliasesResponse ListAliases(ListAliasesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAliasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAliasesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a paginated call to list the aliases associated with a given entity.
///
/// Container for the necessary parameters to execute the ListAliases service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAliases service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListAliases Operation
public virtual Task ListAliasesAsync(ListAliasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAliasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAliasesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAvailabilityConfigurations
///
/// List all the AvailabilityConfiguration
's for the given WorkMail organization.
///
/// Container for the necessary parameters to execute the ListAvailabilityConfigurations service method.
///
/// The response from the ListAvailabilityConfigurations service method, as returned by WorkMail.
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListAvailabilityConfigurations Operation
public virtual ListAvailabilityConfigurationsResponse ListAvailabilityConfigurations(ListAvailabilityConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAvailabilityConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAvailabilityConfigurationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List all the AvailabilityConfiguration
's for the given WorkMail organization.
///
/// Container for the necessary parameters to execute the ListAvailabilityConfigurations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAvailabilityConfigurations service method, as returned by WorkMail.
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListAvailabilityConfigurations Operation
public virtual Task ListAvailabilityConfigurationsAsync(ListAvailabilityConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAvailabilityConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAvailabilityConfigurationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListGroupMembers
///
/// Returns an overview of the members of a group. Users and groups can be members of
/// a group.
///
/// Container for the necessary parameters to execute the ListGroupMembers service method.
///
/// The response from the ListGroupMembers service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListGroupMembers Operation
public virtual ListGroupMembersResponse ListGroupMembers(ListGroupMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListGroupMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListGroupMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns an overview of the members of a group. Users and groups can be members of
/// a group.
///
/// Container for the necessary parameters to execute the ListGroupMembers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListGroupMembers service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListGroupMembers Operation
public virtual Task ListGroupMembersAsync(ListGroupMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListGroupMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListGroupMembersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListGroups
///
/// Returns summaries of the organization's groups.
///
/// Container for the necessary parameters to execute the ListGroups service method.
///
/// The response from the ListGroups service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListGroups Operation
public virtual ListGroupsResponse ListGroups(ListGroupsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListGroupsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns summaries of the organization's groups.
///
/// Container for the necessary parameters to execute the ListGroups service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListGroups service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListGroups Operation
public virtual Task ListGroupsAsync(ListGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListGroupsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListImpersonationRoles
///
/// Lists all the impersonation roles for the given WorkMail organization.
///
/// Container for the necessary parameters to execute the ListImpersonationRoles service method.
///
/// The response from the ListImpersonationRoles service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListImpersonationRoles Operation
public virtual ListImpersonationRolesResponse ListImpersonationRoles(ListImpersonationRolesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListImpersonationRolesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListImpersonationRolesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all the impersonation roles for the given WorkMail organization.
///
/// Container for the necessary parameters to execute the ListImpersonationRoles service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListImpersonationRoles service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListImpersonationRoles Operation
public virtual Task ListImpersonationRolesAsync(ListImpersonationRolesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListImpersonationRolesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListImpersonationRolesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListMailboxExportJobs
///
/// Lists the mailbox export jobs started for the specified organization within the last
/// seven days.
///
/// Container for the necessary parameters to execute the ListMailboxExportJobs service method.
///
/// The response from the ListMailboxExportJobs service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListMailboxExportJobs Operation
public virtual ListMailboxExportJobsResponse ListMailboxExportJobs(ListMailboxExportJobsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMailboxExportJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMailboxExportJobsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the mailbox export jobs started for the specified organization within the last
/// seven days.
///
/// Container for the necessary parameters to execute the ListMailboxExportJobs service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListMailboxExportJobs service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListMailboxExportJobs Operation
public virtual Task ListMailboxExportJobsAsync(ListMailboxExportJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMailboxExportJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMailboxExportJobsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListMailboxPermissions
///
/// Lists the mailbox permissions associated with a user, group, or resource mailbox.
///
/// Container for the necessary parameters to execute the ListMailboxPermissions service method.
///
/// The response from the ListMailboxPermissions service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListMailboxPermissions Operation
public virtual ListMailboxPermissionsResponse ListMailboxPermissions(ListMailboxPermissionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMailboxPermissionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMailboxPermissionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the mailbox permissions associated with a user, group, or resource mailbox.
///
/// Container for the necessary parameters to execute the ListMailboxPermissions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListMailboxPermissions service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListMailboxPermissions Operation
public virtual Task ListMailboxPermissionsAsync(ListMailboxPermissionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMailboxPermissionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMailboxPermissionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListMailDomains
///
/// Lists the mail domains in a given WorkMail organization.
///
/// Container for the necessary parameters to execute the ListMailDomains service method.
///
/// The response from the ListMailDomains service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListMailDomains Operation
public virtual ListMailDomainsResponse ListMailDomains(ListMailDomainsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMailDomainsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMailDomainsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the mail domains in a given WorkMail organization.
///
/// Container for the necessary parameters to execute the ListMailDomains service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListMailDomains service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListMailDomains Operation
public virtual Task ListMailDomainsAsync(ListMailDomainsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMailDomainsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMailDomainsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListMobileDeviceAccessOverrides
///
/// Lists all the mobile device access overrides for any given combination of WorkMail
/// organization, user, or device.
///
/// Container for the necessary parameters to execute the ListMobileDeviceAccessOverrides service method.
///
/// The response from the ListMobileDeviceAccessOverrides service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListMobileDeviceAccessOverrides Operation
public virtual ListMobileDeviceAccessOverridesResponse ListMobileDeviceAccessOverrides(ListMobileDeviceAccessOverridesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMobileDeviceAccessOverridesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMobileDeviceAccessOverridesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all the mobile device access overrides for any given combination of WorkMail
/// organization, user, or device.
///
/// Container for the necessary parameters to execute the ListMobileDeviceAccessOverrides service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListMobileDeviceAccessOverrides service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListMobileDeviceAccessOverrides Operation
public virtual Task ListMobileDeviceAccessOverridesAsync(ListMobileDeviceAccessOverridesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMobileDeviceAccessOverridesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMobileDeviceAccessOverridesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListMobileDeviceAccessRules
///
/// Lists the mobile device access rules for the specified WorkMail organization.
///
/// Container for the necessary parameters to execute the ListMobileDeviceAccessRules service method.
///
/// The response from the ListMobileDeviceAccessRules service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListMobileDeviceAccessRules Operation
public virtual ListMobileDeviceAccessRulesResponse ListMobileDeviceAccessRules(ListMobileDeviceAccessRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMobileDeviceAccessRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMobileDeviceAccessRulesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the mobile device access rules for the specified WorkMail organization.
///
/// Container for the necessary parameters to execute the ListMobileDeviceAccessRules service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListMobileDeviceAccessRules service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListMobileDeviceAccessRules Operation
public virtual Task ListMobileDeviceAccessRulesAsync(ListMobileDeviceAccessRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMobileDeviceAccessRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMobileDeviceAccessRulesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListOrganizations
///
/// Returns summaries of the customer's organizations.
///
/// Container for the necessary parameters to execute the ListOrganizations service method.
///
/// The response from the ListOrganizations service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
/// REST API Reference for ListOrganizations Operation
public virtual ListOrganizationsResponse ListOrganizations(ListOrganizationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOrganizationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOrganizationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns summaries of the customer's organizations.
///
/// Container for the necessary parameters to execute the ListOrganizations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListOrganizations service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
/// REST API Reference for ListOrganizations Operation
public virtual Task ListOrganizationsAsync(ListOrganizationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOrganizationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOrganizationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListResourceDelegates
///
/// Lists the delegates associated with a resource. Users and groups can be resource delegates
/// and answer requests on behalf of the resource.
///
/// Container for the necessary parameters to execute the ListResourceDelegates service method.
///
/// The response from the ListResourceDelegates service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListResourceDelegates Operation
public virtual ListResourceDelegatesResponse ListResourceDelegates(ListResourceDelegatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListResourceDelegatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListResourceDelegatesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the delegates associated with a resource. Users and groups can be resource delegates
/// and answer requests on behalf of the resource.
///
/// Container for the necessary parameters to execute the ListResourceDelegates service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListResourceDelegates service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListResourceDelegates Operation
public virtual Task ListResourceDelegatesAsync(ListResourceDelegatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListResourceDelegatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListResourceDelegatesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListResources
///
/// Returns summaries of the organization's resources.
///
/// Container for the necessary parameters to execute the ListResources service method.
///
/// The response from the ListResources service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListResources Operation
public virtual ListResourcesResponse ListResources(ListResourcesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListResourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns summaries of the organization's resources.
///
/// Container for the necessary parameters to execute the ListResources service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListResources service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListResources Operation
public virtual Task ListResourcesAsync(ListResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListResourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
///
/// Lists the tags applied to an WorkMail organization resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by WorkMail.
///
/// The resource cannot be found.
///
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the tags applied to an WorkMail organization resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by WorkMail.
///
/// The resource cannot be found.
///
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListUsers
///
/// Returns summaries of the organization's users.
///
/// Container for the necessary parameters to execute the ListUsers service method.
///
/// The response from the ListUsers service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListUsers Operation
public virtual ListUsersResponse ListUsers(ListUsersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListUsersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListUsersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns summaries of the organization's users.
///
/// Container for the necessary parameters to execute the ListUsers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListUsers service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for ListUsers Operation
public virtual Task ListUsersAsync(ListUsersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListUsersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListUsersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutAccessControlRule
///
/// 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.
///
/// Container for the necessary parameters to execute the PutAccessControlRule service method.
///
/// The response from the PutAccessControlRule service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for PutAccessControlRule Operation
public virtual PutAccessControlRuleResponse PutAccessControlRule(PutAccessControlRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutAccessControlRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutAccessControlRuleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the PutAccessControlRule service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutAccessControlRule service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for PutAccessControlRule Operation
public virtual Task PutAccessControlRuleAsync(PutAccessControlRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutAccessControlRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutAccessControlRuleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutEmailMonitoringConfiguration
///
/// Creates or updates the email monitoring configuration for a specified organization.
///
/// Container for the necessary parameters to execute the PutEmailMonitoringConfiguration service method.
///
/// The response from the PutEmailMonitoringConfiguration service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for PutEmailMonitoringConfiguration Operation
public virtual PutEmailMonitoringConfigurationResponse PutEmailMonitoringConfiguration(PutEmailMonitoringConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutEmailMonitoringConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutEmailMonitoringConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates or updates the email monitoring configuration for a specified organization.
///
/// Container for the necessary parameters to execute the PutEmailMonitoringConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutEmailMonitoringConfiguration service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for PutEmailMonitoringConfiguration Operation
public virtual Task PutEmailMonitoringConfigurationAsync(PutEmailMonitoringConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutEmailMonitoringConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutEmailMonitoringConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutInboundDmarcSettings
///
/// Enables or disables a DMARC policy for a given organization.
///
/// Container for the necessary parameters to execute the PutInboundDmarcSettings service method.
///
/// The response from the PutInboundDmarcSettings service method, as returned by WorkMail.
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for PutInboundDmarcSettings Operation
public virtual PutInboundDmarcSettingsResponse PutInboundDmarcSettings(PutInboundDmarcSettingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutInboundDmarcSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutInboundDmarcSettingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Enables or disables a DMARC policy for a given organization.
///
/// Container for the necessary parameters to execute the PutInboundDmarcSettings service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutInboundDmarcSettings service method, as returned by WorkMail.
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for PutInboundDmarcSettings Operation
public virtual Task PutInboundDmarcSettingsAsync(PutInboundDmarcSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutInboundDmarcSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutInboundDmarcSettingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutMailboxPermissions
///
/// Sets permissions for a user, group, or resource. This replaces any pre-existing permissions.
///
/// Container for the necessary parameters to execute the PutMailboxPermissions service method.
///
/// The response from the PutMailboxPermissions service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for PutMailboxPermissions Operation
public virtual PutMailboxPermissionsResponse PutMailboxPermissions(PutMailboxPermissionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutMailboxPermissionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutMailboxPermissionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Sets permissions for a user, group, or resource. This replaces any pre-existing permissions.
///
/// Container for the necessary parameters to execute the PutMailboxPermissions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutMailboxPermissions service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for PutMailboxPermissions Operation
public virtual Task PutMailboxPermissionsAsync(PutMailboxPermissionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutMailboxPermissionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutMailboxPermissionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutMobileDeviceAccessOverride
///
/// Creates or updates a mobile device access override for the given WorkMail organization,
/// user, and device.
///
/// Container for the necessary parameters to execute the PutMobileDeviceAccessOverride service method.
///
/// The response from the PutMobileDeviceAccessOverride service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for PutMobileDeviceAccessOverride Operation
public virtual PutMobileDeviceAccessOverrideResponse PutMobileDeviceAccessOverride(PutMobileDeviceAccessOverrideRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutMobileDeviceAccessOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutMobileDeviceAccessOverrideResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates or updates a mobile device access override for the given WorkMail organization,
/// user, and device.
///
/// Container for the necessary parameters to execute the PutMobileDeviceAccessOverride service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutMobileDeviceAccessOverride service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for PutMobileDeviceAccessOverride Operation
public virtual Task PutMobileDeviceAccessOverrideAsync(PutMobileDeviceAccessOverrideRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutMobileDeviceAccessOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutMobileDeviceAccessOverrideResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutRetentionPolicy
///
/// Puts a retention policy to the specified organization.
///
/// Container for the necessary parameters to execute the PutRetentionPolicy service method.
///
/// The response from the PutRetentionPolicy service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for PutRetentionPolicy Operation
public virtual PutRetentionPolicyResponse PutRetentionPolicy(PutRetentionPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutRetentionPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutRetentionPolicyResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Puts a retention policy to the specified organization.
///
/// Container for the necessary parameters to execute the PutRetentionPolicy service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutRetentionPolicy service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for PutRetentionPolicy Operation
public virtual Task PutRetentionPolicyAsync(PutRetentionPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutRetentionPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutRetentionPolicyResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RegisterMailDomain
///
/// 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.
///
/// Container for the necessary parameters to execute the RegisterMailDomain service method.
///
/// The response from the RegisterMailDomain service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// The domain you're trying to change is in use by another user or organization in your
/// account. See the error message for details.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for RegisterMailDomain Operation
public virtual RegisterMailDomainResponse RegisterMailDomain(RegisterMailDomainRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterMailDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterMailDomainResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the RegisterMailDomain service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RegisterMailDomain service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// The domain you're trying to change is in use by another user or organization in your
/// account. See the error message for details.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for RegisterMailDomain Operation
public virtual Task RegisterMailDomainAsync(RegisterMailDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterMailDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterMailDomainResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RegisterToWorkMail
///
/// 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.
///
///
/// Container for the necessary parameters to execute the RegisterToWorkMail service method.
///
/// The response from the RegisterToWorkMail service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// The email address that you're trying to assign is already created for a different
/// user, group, or resource.
///
///
/// The user, group, or resource that you're trying to register is already registered.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The domain specified is not found in your organization.
///
///
/// After a domain has been added to the organization, it must be verified. The domain
/// is not yet verified.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for RegisterToWorkMail Operation
public virtual RegisterToWorkMailResponse RegisterToWorkMail(RegisterToWorkMailRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterToWorkMailRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterToWorkMailResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the RegisterToWorkMail service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RegisterToWorkMail service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// The email address that you're trying to assign is already created for a different
/// user, group, or resource.
///
///
/// The user, group, or resource that you're trying to register is already registered.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The domain specified is not found in your organization.
///
///
/// After a domain has been added to the organization, it must be verified. The domain
/// is not yet verified.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for RegisterToWorkMail Operation
public virtual Task RegisterToWorkMailAsync(RegisterToWorkMailRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterToWorkMailRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterToWorkMailResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ResetPassword
///
/// Allows the administrator to reset the password for a user.
///
/// Container for the necessary parameters to execute the ResetPassword service method.
///
/// The response from the ResetPassword service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The supplied password doesn't match the minimum security constraints, such as length
/// or use of special characters.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for ResetPassword Operation
public virtual ResetPasswordResponse ResetPassword(ResetPasswordRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResetPasswordRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResetPasswordResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Allows the administrator to reset the password for a user.
///
/// Container for the necessary parameters to execute the ResetPassword service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ResetPassword service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The supplied password doesn't match the minimum security constraints, such as length
/// or use of special characters.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for ResetPassword Operation
public virtual Task ResetPasswordAsync(ResetPasswordRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ResetPasswordRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResetPasswordResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartMailboxExportJob
///
/// 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.
///
/// Container for the necessary parameters to execute the StartMailboxExportJob service method.
///
/// The response from the StartMailboxExportJob service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for StartMailboxExportJob Operation
public virtual StartMailboxExportJobResponse StartMailboxExportJob(StartMailboxExportJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartMailboxExportJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartMailboxExportJobResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the StartMailboxExportJob service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartMailboxExportJob service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for StartMailboxExportJob Operation
public virtual Task StartMailboxExportJobAsync(StartMailboxExportJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartMailboxExportJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartMailboxExportJobResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
///
/// Applies the specified tags to the specified WorkMailorganization resource.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by WorkMail.
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
///
/// The resource can have up to 50 user-applied tags.
///
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Applies the specified tags to the specified WorkMailorganization resource.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by WorkMail.
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
///
/// The resource can have up to 50 user-applied tags.
///
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TestAvailabilityConfiguration
///
/// 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.
///
///
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the TestAvailabilityConfiguration service method.
///
/// The response from the TestAvailabilityConfiguration service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for TestAvailabilityConfiguration Operation
public virtual TestAvailabilityConfigurationResponse TestAvailabilityConfiguration(TestAvailabilityConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TestAvailabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = TestAvailabilityConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the TestAvailabilityConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TestAvailabilityConfiguration service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for TestAvailabilityConfiguration Operation
public virtual Task TestAvailabilityConfigurationAsync(TestAvailabilityConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TestAvailabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = TestAvailabilityConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
///
/// Untags the specified tags from the specified WorkMail organization resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by WorkMail.
///
/// The resource cannot be found.
///
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Untags the specified tags from the specified WorkMail organization resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by WorkMail.
///
/// The resource cannot be found.
///
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateAvailabilityConfiguration
///
/// Updates an existing AvailabilityConfiguration
for the given WorkMail
/// organization and domain.
///
/// Container for the necessary parameters to execute the UpdateAvailabilityConfiguration service method.
///
/// The response from the UpdateAvailabilityConfiguration service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for UpdateAvailabilityConfiguration Operation
public virtual UpdateAvailabilityConfigurationResponse UpdateAvailabilityConfiguration(UpdateAvailabilityConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAvailabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAvailabilityConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates an existing AvailabilityConfiguration
for the given WorkMail
/// organization and domain.
///
/// Container for the necessary parameters to execute the UpdateAvailabilityConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateAvailabilityConfiguration service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for UpdateAvailabilityConfiguration Operation
public virtual Task UpdateAvailabilityConfigurationAsync(UpdateAvailabilityConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAvailabilityConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAvailabilityConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateDefaultMailDomain
///
/// 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.
///
/// Container for the necessary parameters to execute the UpdateDefaultMailDomain service method.
///
/// The response from the UpdateDefaultMailDomain service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The domain specified is not found in your organization.
///
///
/// After a domain has been added to the organization, it must be verified. The domain
/// is not yet verified.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for UpdateDefaultMailDomain Operation
public virtual UpdateDefaultMailDomainResponse UpdateDefaultMailDomain(UpdateDefaultMailDomainRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDefaultMailDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDefaultMailDomainResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the UpdateDefaultMailDomain service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateDefaultMailDomain service method, as returned by WorkMail.
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The domain specified is not found in your organization.
///
///
/// After a domain has been added to the organization, it must be verified. The domain
/// is not yet verified.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for UpdateDefaultMailDomain Operation
public virtual Task UpdateDefaultMailDomainAsync(UpdateDefaultMailDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDefaultMailDomainRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDefaultMailDomainResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateImpersonationRole
///
/// Updates an impersonation role for the given WorkMail organization.
///
/// Container for the necessary parameters to execute the UpdateImpersonationRole service method.
///
/// The response from the UpdateImpersonationRole service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for UpdateImpersonationRole Operation
public virtual UpdateImpersonationRoleResponse UpdateImpersonationRole(UpdateImpersonationRoleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateImpersonationRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateImpersonationRoleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates an impersonation role for the given WorkMail organization.
///
/// Container for the necessary parameters to execute the UpdateImpersonationRole service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateImpersonationRole service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The request exceeds the limit of the resource.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// The resource cannot be found.
///
/// REST API Reference for UpdateImpersonationRole Operation
public virtual Task UpdateImpersonationRoleAsync(UpdateImpersonationRoleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateImpersonationRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateImpersonationRoleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateMailboxQuota
///
/// Updates a user's current mailbox quota for a specified organization and user.
///
/// Container for the necessary parameters to execute the UpdateMailboxQuota service method.
///
/// The response from the UpdateMailboxQuota service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for UpdateMailboxQuota Operation
public virtual UpdateMailboxQuotaResponse UpdateMailboxQuota(UpdateMailboxQuotaRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateMailboxQuotaRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateMailboxQuotaResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates a user's current mailbox quota for a specified organization and user.
///
/// Container for the necessary parameters to execute the UpdateMailboxQuota service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateMailboxQuota service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for UpdateMailboxQuota Operation
public virtual Task UpdateMailboxQuotaAsync(UpdateMailboxQuotaRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateMailboxQuotaRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateMailboxQuotaResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateMobileDeviceAccessRule
///
/// Updates a mobile device access rule for the specified WorkMail organization.
///
/// Container for the necessary parameters to execute the UpdateMobileDeviceAccessRule service method.
///
/// The response from the UpdateMobileDeviceAccessRule service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for UpdateMobileDeviceAccessRule Operation
public virtual UpdateMobileDeviceAccessRuleResponse UpdateMobileDeviceAccessRule(UpdateMobileDeviceAccessRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateMobileDeviceAccessRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateMobileDeviceAccessRuleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates a mobile device access rule for the specified WorkMail organization.
///
/// Container for the necessary parameters to execute the UpdateMobileDeviceAccessRule service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateMobileDeviceAccessRule service method, as returned by WorkMail.
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for UpdateMobileDeviceAccessRule Operation
public virtual Task UpdateMobileDeviceAccessRuleAsync(UpdateMobileDeviceAccessRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateMobileDeviceAccessRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateMobileDeviceAccessRuleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdatePrimaryEmailAddress
///
/// 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.
///
/// Container for the necessary parameters to execute the UpdatePrimaryEmailAddress service method.
///
/// The response from the UpdatePrimaryEmailAddress service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// The email address that you're trying to assign is already created for a different
/// user, group, or resource.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The domain specified is not found in your organization.
///
///
/// After a domain has been added to the organization, it must be verified. The domain
/// is not yet verified.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for UpdatePrimaryEmailAddress Operation
public virtual UpdatePrimaryEmailAddressResponse UpdatePrimaryEmailAddress(UpdatePrimaryEmailAddressRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdatePrimaryEmailAddressRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdatePrimaryEmailAddressResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the UpdatePrimaryEmailAddress service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdatePrimaryEmailAddress service method, as returned by WorkMail.
///
/// The directory service doesn't recognize the credentials supplied by WorkMail.
///
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// The email address that you're trying to assign is already created for a different
/// user, group, or resource.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// One or more of the input parameters don't match the service's restrictions.
///
///
/// The domain specified is not found in your organization.
///
///
/// After a domain has been added to the organization, it must be verified. The domain
/// is not yet verified.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
///
/// You can't perform a write operation against a read-only directory.
///
/// REST API Reference for UpdatePrimaryEmailAddress Operation
public virtual Task UpdatePrimaryEmailAddressAsync(UpdatePrimaryEmailAddressRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdatePrimaryEmailAddressRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdatePrimaryEmailAddressResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateResource
///
/// 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.
///
/// Container for the necessary parameters to execute the UpdateResource service method.
///
/// The response from the UpdateResource service method, as returned by WorkMail.
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// The email address that you're trying to assign is already created for a different
/// user, group, or resource.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// The configuration for a resource isn't valid. A resource must either be able to auto-respond
/// to requests or have at least one delegate associated that can do so on its behalf.
///
///
/// The domain specified is not found in your organization.
///
///
/// After a domain has been added to the organization, it must be verified. The domain
/// is not yet verified.
///
///
/// The user, group, or resource name isn't unique in WorkMail.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for UpdateResource Operation
public virtual UpdateResourceResponse UpdateResource(UpdateResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the UpdateResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateResource service method, as returned by WorkMail.
///
/// The directory is unavailable. It might be located in another Region or deleted.
///
///
/// The email address that you're trying to assign is already created for a different
/// user, group, or resource.
///
///
/// The identifier supplied for the user, group, or resource does not exist in your organization.
///
///
/// You are performing an operation on a user, group, or resource that isn't in the expected
/// state, such as trying to delete an active user.
///
///
/// The configuration for a resource isn't valid. A resource must either be able to auto-respond
/// to requests or have at least one delegate associated that can do so on its behalf.
///
///
/// The domain specified is not found in your organization.
///
///
/// After a domain has been added to the organization, it must be verified. The domain
/// is not yet verified.
///
///
/// The user, group, or resource name isn't unique in WorkMail.
///
///
/// An operation received a valid organization identifier that either doesn't belong or
/// exist in the system.
///
///
/// The organization must have a valid state to perform certain operations on the organization
/// or its members.
///
/// REST API Reference for UpdateResource Operation
public virtual Task UpdateResourceAsync(UpdateResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}