def connect_directory(Name=None, ShortName=None, Password=None, Description
    =None, Size=None, ConnectSettings=None):
    """
    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 .
    See also: AWS API Documentation
    
    
    :example: response = client.connect_directory(
        Name='string',
        ShortName='string',
        Password='string',
        Description='string',
        Size='Small'|'Large',
        ConnectSettings={
            'VpcId': 'string',
            'SubnetIds': [
                'string',
            ],
            'CustomerDnsIps': [
                'string',
            ],
            'CustomerUserName': 'string'
        }
    )
    
    
    :type Name: string
    :param Name: [REQUIRED]
            The fully-qualified name of the on-premises directory, such as corp.example.com .
            

    :type ShortName: string
    :param ShortName: The NetBIOS name of the on-premises directory, such as CORP .

    :type Password: string
    :param Password: [REQUIRED]
            The password for the on-premises user account.
            

    :type Description: string
    :param Description: A textual description for the directory.

    :type Size: string
    :param Size: [REQUIRED]
            The size of the directory.
            

    :type ConnectSettings: dict
    :param ConnectSettings: [REQUIRED]
            A DirectoryConnectSettings object that contains additional information for the operation.
            VpcId (string) -- [REQUIRED]The identifier of the VPC in which the AD Connector is created.
            SubnetIds (list) -- [REQUIRED]A list of subnet identifiers in the VPC in which the AD Connector is created.
            (string) --
            CustomerDnsIps (list) -- [REQUIRED]A list of one or more IP addresses of DNS servers or domain controllers in the on-premises directory.
            (string) --
            CustomerUserName (string) -- [REQUIRED]The username of an account in the on-premises directory that is used to connect to the directory. This account must have the following privileges:
            Read users and groups
            Create computer objects
            Join computers to the domain
            

    :rtype: dict
    :return: {
        'DirectoryId': 'string'
    }
    
    
    """
    pass
