Amazon.DirectoryService.AmazonDirectoryServiceClient.ConnectDirectory C# (CSharp) Method

ConnectDirectory() public method

Creates an AD Connector to connect to an on-premises directory.

Before you call ConnectDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the ConnectDirectory operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.

/// A client exception has occurred. /// /// The maximum number of directories in the region has been reached. You can use the /// GetDirectoryLimits operation to determine your directory limits in the region. /// /// One or more parameters are not valid. /// /// An exception has occurred in AWS Directory Service. ///
public ConnectDirectory ( ConnectDirectoryRequest request ) : Amazon.DirectoryService.Model.ConnectDirectoryResponse
request Amazon.DirectoryService.Model.ConnectDirectoryRequest Container for the necessary parameters to execute the ConnectDirectory service method.
return Amazon.DirectoryService.Model.ConnectDirectoryResponse
        public ConnectDirectoryResponse ConnectDirectory(ConnectDirectoryRequest request)
        {
            var marshaller = new ConnectDirectoryRequestMarshaller();
            var unmarshaller = ConnectDirectoryResponseUnmarshaller.Instance;

            return Invoke<ConnectDirectoryRequest,ConnectDirectoryResponse>(request, marshaller, unmarshaller);
        }
AmazonDirectoryServiceClient