NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class DirectoryServiceClient

Client to interact with AWS Directory Service

  Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
  Guzzle\Http\Client implements Guzzle\Http\ClientInterface
  Guzzle\Service\Client implements Guzzle\Service\ClientInterface
  Aws\Common\Client\AbstractClient implements Aws\Common\Client\AwsClientInterface
  Aws\DirectoryService\DirectoryServiceClient

Namespace: Aws\DirectoryService
Link: User guide
Link: API docs
Located at Aws/DirectoryService/DirectoryServiceClient.php

## Methods summary

- `public static` `factory ( array $config = array() )`

  Executes the UpdateRadius operation.

- `public` `connectDirectory ( array $args = array() )`

  Executes the ConnectDirectory operation.

- `public` `createAlias ( array $args = array() )`

  Executes the CreateAlias operation.

- `public` `createComputer ( array $args = array() )`

  Executes the CreateComputer operation.

- `public` `createDirectory ( array $args = array() )`

  Executes the CreateDirectory operation.

- `public` `createSnapshot ( array $args = array() )`

  Executes the CreateSnapshot operation.

- `public` `deleteDirectory ( array $args = array() )`

  Executes the DeleteDirectory operation.

- `public` `deleteSnapshot ( array $args = array() )`

  Executes the DeleteSnapshot operation.

- `public` `describeDirectories ( array $args = array() )`

  Executes the DescribeDirectories operation.

- `public` `describeSnapshots ( array $args = array() )`

  Executes the DescribeSnapshots operation.

- `public` `disableRadius ( array $args = array() )`

  Executes the DisableRadius operation.

- `public` `disableSso ( array $args = array() )`

  Executes the DisableSso operation.

- `public` `enableRadius ( array $args = array() )`

  Executes the EnableRadius operation.

- `public` `enableSso ( array $args = array() )`

  Executes the EnableSso operation.

- `public` `getDirectoryLimits ( array $args = array() )`

  Executes the GetDirectoryLimits operation.

- `public` `getSnapshotLimits ( array $args = array() )`

  Executes the GetSnapshotLimits operation.

- `public` `restoreFromSnapshot ( array $args = array() )`

  Executes the RestoreFromSnapshot operation.

- `public` `updateRadius ( array $args = array() )`

  Executes the UpdateRadius operation.

## Methods detail

# `public static `Guzzle\Service\Resource\Model``
`factory( array $config = array() )`

Executes the UpdateRadius operation.

Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector directory.

#### Parameters

$config
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryId => (string)

    The identifier of the directory to update the RADIUS server information for.

  - RadiusSettings => (associative-array)

    A RadiusSettings object that contains information about the RADIUS server.

    - RadiusServers => (array<string>)

      An array of strings that contains the IP addresses of the RADIUS server endpoints, or the IP addresses of your RADIUS server load balancer.

    - RadiusPort => (int)

      The port that your RADIUS server is using for communications. Your on-premises network must allow inbound traffic over this port from the AWS Directory Service servers.

    - RadiusTimeout => (int)

      The amount of time, in seconds, to wait for the RADIUS server to respond.

    - RadiusRetries => (int)

      The maximum number of times that communication with the RADIUS server is attempted.

    - SharedSecret => (string)

      The shared secret code that was specified when your RADIUS endpoints were created.

    - AuthenticationProtocol => (string: PAP | CHAP | MS-CHAPv1 | MS-CHAPv2 )

      The protocol specified for your RADIUS endpoints.

    - DisplayLabel => (string)

      Not currently used.

    - UseSameUsername => (bool)

      Not currently used.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

#### Overrides

`Guzzle\Service\Client::factory`
# `public `Guzzle\Service\Resource\Model``
`connectDirectory( array $args = array() )`

Executes the ConnectDirectory operation.

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

#### Examples

- Basic formatting example

      $result = $client->connectDirectory(array(
          // Name is required
          'Name' => 'string',
          'ShortName' => 'string',
          // Password is required
          'Password' => 'string',
          'Description' => 'string',
          // Size is required
          'Size' => 'string',
          // ConnectSettings is required
          'ConnectSettings' => array(
              // VpcId is required
              'VpcId' => 'string',
              // SubnetIds is required
              'SubnetIds' => array('string', ... ),
              // CustomerDnsIps is required
              'CustomerDnsIps' => array('string', ... ),
              // CustomerUserName is required
              'CustomerUserName' => 'string',
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - Name => (string)

    The fully-qualified name of the on-premises directory, such as corp.example.com.

  - ShortName => (string)

    The NetBIOS name of the on-premises directory, such as CORP.

  - Password => (string)

    The password for the on-premises user account.

  - Description => (string)

    A textual description for the directory.

  - Size => (string: Small | Large )

    The size of the directory.

  - ConnectSettings => (associative-array)

    A DirectoryConnectSettings object that contains additional information for the operation.

    - VpcId => (string)

      The identifier of the VPC that the AD Connector is created in.

    - SubnetIds => (array<string>)

      A list of subnet identifiers in the VPC that the AD Connector is created in.

    - CustomerDnsIps => (array<string>)

      A list of one or more IP addresses of DNS servers or domain controllers in the on-premises directory.

    - CustomerUserName => (string)

      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

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- DirectoryId => (string)

  The identifier of the new directory.

# `public `Guzzle\Service\Resource\Model``
`createAlias( array $args = array() )`

Executes the CreateAlias operation.

Creates an alias for a directory and assigns the alias to the directory. The alias is used to construct the access URL for the directory, such as http://<alias>.awsapps.com .

After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.

#### Examples

- Basic formatting example

      $result = $client->createAlias(array(
          // DirectoryId is required
          'DirectoryId' => 'string',
          // Alias is required
          'Alias' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryId => (string)

    The identifier of the directory to create the alias for.

  - Alias => (string)

    The requested alias.

    The alias must be unique amongst all aliases in AWS. This operation will throw an EntityAlreadyExistsException if this alias already exists.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- DirectoryId => (string)

  The identifier of the directory.

- Alias => (string)

  The alias for the directory.

# `public `Guzzle\Service\Resource\Model``
`createComputer( array $args = array() )`

Executes the CreateComputer operation.

Creates a computer account in the specified directory, and joins the computer to the directory.

#### Examples

- Basic formatting example

      $result = $client->createComputer(array(
          // DirectoryId is required
          'DirectoryId' => 'string',
          // ComputerName is required
          'ComputerName' => 'string',
          // Password is required
          'Password' => 'string',
          'OrganizationalUnitDistinguishedName' => 'string',
          'ComputerAttributes' => array(
              array(
                  'Name' => 'string',
                  'Value' => 'string',
              ),
              // ... repeated
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryId => (string)

    The identifier of the directory to create the computer account in.

  - ComputerName => (string)

    The name of the computer account.

  - Password => (string)

    A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.

  - OrganizationalUnitDistinguishedName => (string)

    The fully-qualified distinguished name of the organizational unit to place the computer account in.

  - ComputerAttributes => (array<associative-array>)

    An array of Attribute objects that contain any LDAP attributes to apply to the computer account.

    - (associative-array)

      Represents a named directory attribute.

      - Name => (string)

        The name of the attribute.

      - Value => (string)

        The value of the attribute.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- Computer => (associative-array)

  A Computer object the represents the computer account.

  - ComputerId => (string)

    The identifier of the computer.

  - ComputerName => (string)

    The computer name.

  - ComputerAttributes => (array<associative-array>)

    An array of Attribute objects that contain the LDAP attributes that belong to the computer account.

    - (associative-array)

      Represents a named directory attribute.

      - Name => (string)

        The name of the attribute.

      - Value => (string)

        The value of the attribute.

# `public `Guzzle\Service\Resource\Model``
`createDirectory( array $args = array() )`

Executes the CreateDirectory operation.

Creates a Simple AD directory.

#### Examples

- Basic formatting example

      $result = $client->createDirectory(array(
          // Name is required
          'Name' => 'string',
          'ShortName' => 'string',
          // Password is required
          'Password' => 'string',
          'Description' => 'string',
          // Size is required
          'Size' => 'string',
          'VpcSettings' => array(
              // VpcId is required
              'VpcId' => 'string',
              // SubnetIds is required
              'SubnetIds' => array('string', ... ),
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - Name => (string)

    The fully qualified name for the directory, such as corp.example.com.

  - ShortName => (string)

    The short name of the directory, such as CORP.

  - Password => (string)

    The password for the directory administrator. The directory creation process creates a directory administrator account with the username Administrator and this password.

  - Description => (string)

    A textual description for the directory.

  - Size => (string: Small | Large )

    The size of the directory.

  - VpcSettings => (associative-array)

    A DirectoryVpcSettings object that contains additional information for the operation.

    - VpcId => (string)

      The identifier of the VPC to create the Simple AD directory in.

    - SubnetIds => (array<string>)

      The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. AWS Directory Service creates a directory server and a DNS server in each of these subnets.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- DirectoryId => (string)

  The identifier of the directory that was created.

# `public `Guzzle\Service\Resource\Model``
`createSnapshot( array $args = array() )`

Executes the CreateSnapshot operation.

Creates a snapshot of an existing directory.

You cannot take snapshots of extended or connected directories.

#### Examples

- Basic formatting example

      $result = $client->createSnapshot(array(
          // DirectoryId is required
          'DirectoryId' => 'string',
          'Name' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryId => (string)

    The identifier of the directory to take a snapshot of.

  - Name => (string)

    The descriptive name to apply to the snapshot.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- SnapshotId => (string)

  The identifier of the snapshot that was created.

# `public `Guzzle\Service\Resource\Model``
`deleteDirectory( array $args = array() )`

Executes the DeleteDirectory operation.

Deletes an AWS Directory Service directory.

#### Examples

- Basic formatting example

      $result = $client->deleteDirectory(array(
          // DirectoryId is required
          'DirectoryId' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryId => (string)

    The identifier of the directory to delete.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- DirectoryId => (string)

  The directory identifier.

# `public `Guzzle\Service\Resource\Model``
`deleteSnapshot( array $args = array() )`

Executes the DeleteSnapshot operation.

Deletes a directory snapshot.

#### Examples

- Basic formatting example

      $result = $client->deleteSnapshot(array(
          // SnapshotId is required
          'SnapshotId' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - SnapshotId => (string)

    The identifier of the directory snapshot to be deleted.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- SnapshotId => (string)

  The identifier of the directory snapshot that was deleted.

# `public `Guzzle\Service\Resource\Model``
`describeDirectories( array $args = array() )`

Executes the DescribeDirectories operation.

Obtains information about the directories that belong to this account.

You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to DescribeDirectories to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

#### Examples

- Basic formatting example

      $result = $client->describeDirectories(array(
          'DirectoryIds' => array('string', ... ),
          'NextToken' => 'string',
          'Limit' => integer,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryIds => (array<string>)

    A list of identifiers of the directories to obtain the information for. If this member is null, all directories that belong to the current account are returned.

    An empty list results in an InvalidParameterException being thrown.

  - NextToken => (string)

    The DescribeDirectoriesResult.NextToken value from a previous call to DescribeDirectories. Pass null if this is the first call.

  - Limit => (int)

    The maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- DirectoryDescriptions => (array<associative-array>)

  The list of DirectoryDescription objects that were retrieved.

  It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.

  - (associative-array)

    Contains information about an AWS Directory Service directory.

    - DirectoryId => (string)

      The directory identifier.

    - Name => (string)

      The fully-qualified name of the directory.

    - ShortName => (string)

      The short name of the directory.

    - Size => (string)

      The directory size.

    - Alias => (string)

      The alias for the directory.

    - AccessUrl => (string)

      The access URL for the directory, such as http://<alias>.awsapps.com.

    - Description => (string)

      The textual description for the directory.

    - DnsIpAddrs => (array<string>)

      The IP addresses of the DNS servers for the directory. For a Simple AD directory, these are the IP addresses of the Simple AD directory servers. For an AD Connector directory, these are the IP addresses of the DNS servers or domain controllers in the on-premises directory that the AD Connector is connected to.

    - Stage => (string)

      The current stage of the directory.

    - LaunchTime => (string)

      Specifies when the directory was created.

    - StageLastUpdatedDateTime => (string)

      The date and time that the stage was last updated.

    - Type => (string)

      The directory size.

    - VpcSettings => (associative-array)

      A DirectoryVpcSettingsDescription object that contains additional information about a Simple AD directory. This member is only present if the directory is a Simple AD directory.

      - VpcId => (string)

        The identifier of the VPC that the directory is in.

      - SubnetIds => (array<string>)

        The identifiers of the subnets for the directory servers.

      - SecurityGroupId => (string)

        The security group identifier for the directory.

      - AvailabilityZones => (array<string>)

        The list of Availability Zones that the directory is in.

    - ConnectSettings => (associative-array)

      A DirectoryConnectSettingsDescription object that contains additional information about an AD Connector directory. This member is only present if the directory is an AD Connector directory.

      - VpcId => (string)

        The identifier of the VPC that the AD Connector is in.

      - SubnetIds => (array<string>)

        A list of subnet identifiers in the VPC that the AD connector is in.

      - CustomerUserName => (string)

        The username of the service account in the on-premises directory.

      - SecurityGroupId => (string)

        The security group identifier for the AD Connector directory.

      - AvailabilityZones => (array<string>)

        A list of the Availability Zones that the directory is in.

      - ConnectIps => (array<string>)

        The IP addresses of the AD Connector servers.

    - RadiusSettings => (associative-array)

      A RadiusSettings object that contains information about the RADIUS server configured for this directory.

      - RadiusServers => (array<string>)

        An array of strings that contains the IP addresses of the RADIUS server endpoints, or the IP addresses of your RADIUS server load balancer.

      - RadiusPort => (int)

        The port that your RADIUS server is using for communications. Your on-premises network must allow inbound traffic over this port from the AWS Directory Service servers.

      - RadiusTimeout => (int)

        The amount of time, in seconds, to wait for the RADIUS server to respond.

      - RadiusRetries => (int)

        The maximum number of times that communication with the RADIUS server is attempted.

      - SharedSecret => (string)

        The shared secret code that was specified when your RADIUS endpoints were created.

      - AuthenticationProtocol => (string)

        The protocol specified for your RADIUS endpoints.

      - DisplayLabel => (string)

        Not currently used.

      - UseSameUsername => (bool)

        Not currently used.

    - RadiusStatus => (string)

      The status of the RADIUS MFA server connection.

    - StageReason => (string)

      Additional information about the directory stage.

    - SsoEnabled => (bool)

      Indicates if single-sign on is enabled for the directory. For more information, see EnableSso and DisableSso.

- NextToken => (string)

  If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeDirectories to retrieve the next set of items.

# `public `Guzzle\Service\Resource\Model``
`describeSnapshots( array $args = array() )`

Executes the DescribeSnapshots operation.

Obtains information about the directory snapshots that belong to this account.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeSnapshots.NextToken member contains a token that you pass in the next call to DescribeSnapshots to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

#### Examples

- Basic formatting example

      $result = $client->describeSnapshots(array(
          'DirectoryId' => 'string',
          'SnapshotIds' => array('string', ... ),
          'NextToken' => 'string',
          'Limit' => integer,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryId => (string)

    The identifier of the directory to retrieve snapshot information for.

  - SnapshotIds => (array<string>)

    A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the Limit and NextToken members.

  - NextToken => (string)

    The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.

  - Limit => (int)

    The maximum number of objects to return.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- Snapshots => (array<associative-array>)

  The list of Snapshot objects that were retrieved.

  It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.

  - (associative-array)

    Describes a directory snapshot.

    - DirectoryId => (string)

      The directory identifier.

    - SnapshotId => (string)

      The snapshot identifier.

    - Type => (string)

      The snapshot type.

    - Name => (string)

      The descriptive name of the snapshot.

    - Status => (string)

      The snapshot status.

    - StartTime => (string)

      The date and time that the snapshot was taken.

- NextToken => (string)

  If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.

# `public `Guzzle\Service\Resource\Model``
`disableRadius( array $args = array() )`

Executes the DisableRadius operation.

Disables multi-factor authentication (MFA) with Remote Authentication Dial In User Service (RADIUS) for an AD Connector directory.

#### Examples

- Basic formatting example

      $result = $client->disableRadius(array(
          // DirectoryId is required
          'DirectoryId' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryId => (string)

    The identifier of the directory to disable MFA for.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`disableSso( array $args = array() )`

Executes the DisableSso operation.

Disables single-sign on for a directory.

#### Examples

- Basic formatting example

      $result = $client->disableSso(array(
          // DirectoryId is required
          'DirectoryId' => 'string',
          'UserName' => 'string',
          'Password' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryId => (string)

    The identifier of the directory to disable single-sign on for.

  - UserName => (string)

    The username of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. This account must have privileges to remove a service principle name.

    If the AD Connector service account does not have privileges to remove a service principle name, you can specify an alternate account with the UserName and Password parameters. These credentials are only used to disable single sign-on and are not stored by the service. The AD Connector service account is not changed.

  - Password => (string)

    The password of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. See the UserName parameter for more information.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`enableRadius( array $args = array() )`

Executes the EnableRadius operation.

Enables multi-factor authentication (MFA) with Remote Authentication Dial In User Service (RADIUS) for an AD Connector directory.

#### Examples

- Basic formatting example

      $result = $client->enableRadius(array(
          // DirectoryId is required
          'DirectoryId' => 'string',
          // RadiusSettings is required
          'RadiusSettings' => array(
              'RadiusServers' => array('string', ... ),
              'RadiusPort' => integer,
              'RadiusTimeout' => integer,
              'RadiusRetries' => integer,
              'SharedSecret' => 'string',
              'AuthenticationProtocol' => 'string',
              'DisplayLabel' => 'string',
              'UseSameUsername' => true || false,
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryId => (string)

    The identifier of the directory to enable MFA for.

  - RadiusSettings => (associative-array)

    A RadiusSettings object that contains information about the RADIUS server.

    - RadiusServers => (array<string>)

      An array of strings that contains the IP addresses of the RADIUS server endpoints, or the IP addresses of your RADIUS server load balancer.

    - RadiusPort => (int)

      The port that your RADIUS server is using for communications. Your on-premises network must allow inbound traffic over this port from the AWS Directory Service servers.

    - RadiusTimeout => (int)

      The amount of time, in seconds, to wait for the RADIUS server to respond.

    - RadiusRetries => (int)

      The maximum number of times that communication with the RADIUS server is attempted.

    - SharedSecret => (string)

      The shared secret code that was specified when your RADIUS endpoints were created.

    - AuthenticationProtocol => (string: PAP | CHAP | MS-CHAPv1 | MS-CHAPv2 )

      The protocol specified for your RADIUS endpoints.

    - DisplayLabel => (string)

      Not currently used.

    - UseSameUsername => (bool)

      Not currently used.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`enableSso( array $args = array() )`

Executes the EnableSso operation.

Enables single-sign on for a directory.

#### Examples

- Basic formatting example

      $result = $client->enableSso(array(
          // DirectoryId is required
          'DirectoryId' => 'string',
          'UserName' => 'string',
          'Password' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryId => (string)

    The identifier of the directory to enable single-sign on for.

  - UserName => (string)

    The username of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. This account must have privileges to add a service principle name.

    If the AD Connector service account does not have privileges to add a service principle name, you can specify an alternate account with the UserName and Password parameters. These credentials are only used to enable single sign-on and are not stored by the service. The AD Connector service account is not changed.

  - Password => (string)

    The password of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. See the UserName parameter for more information.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`getDirectoryLimits( array $args = array() )`

Executes the GetDirectoryLimits operation.

Obtains directory limit information for the current region.

#### Examples

- Basic formatting example

      $result = $client->getDirectoryLimits(array(
      ));

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- DirectoryLimits => (associative-array)

  A DirectoryLimits object that contains the directory limits for the current region.

  - CloudOnlyDirectoriesLimit => (int)

    The maximum number of cloud directories allowed in the region.

  - CloudOnlyDirectoriesCurrentCount => (int)

    The current number of cloud directories in the region.

  - CloudOnlyDirectoriesLimitReached => (bool)

    Indicates if the cloud directory limit has been reached.

  - ConnectedDirectoriesLimit => (int)

    The maximum number of connected directories allowed in the region.

  - ConnectedDirectoriesCurrentCount => (int)

    The current number of connected directories in the region.

  - ConnectedDirectoriesLimitReached => (bool)

    Indicates if the connected directory limit has been reached.

# `public `Guzzle\Service\Resource\Model``
`getSnapshotLimits( array $args = array() )`

Executes the GetSnapshotLimits operation.

Obtains the manual snapshot limits for a directory.

#### Examples

- Basic formatting example

      $result = $client->getSnapshotLimits(array(
          // DirectoryId is required
          'DirectoryId' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryId => (string)

    Contains the identifier of the directory to obtain the limits for.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- SnapshotLimits => (associative-array)

  A SnapshotLimits object that contains the manual snapshot limits for the specified directory.

  - ManualSnapshotsLimit => (int)

    The maximum number of manual snapshots allowed.

  - ManualSnapshotsCurrentCount => (int)

    The current number of manual snapshots of the directory.

  - ManualSnapshotsLimitReached => (bool)

    Indicates if the manual snapshot limit has been reached.

# `public `Guzzle\Service\Resource\Model``
`restoreFromSnapshot( array $args = array() )`

Executes the RestoreFromSnapshot operation.

Restores a directory using an existing directory snapshot.

When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.

This action returns as soon as the restore operation is initiated. You can monitor the progress of the restore operation by calling the DescribeDirectories operation with the directory identifier. When the DirectoryDescription.Stage value changes to Active , the restore operation is complete.

#### Examples

- Basic formatting example

      $result = $client->restoreFromSnapshot(array(
          // SnapshotId is required
          'SnapshotId' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - SnapshotId => (string)

    The identifier of the snapshot to restore from.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`updateRadius( array $args = array() )`

Executes the UpdateRadius operation.

Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector directory.

#### Examples

- Basic formatting example

      $result = $client->updateRadius(array(
          // DirectoryId is required
          'DirectoryId' => 'string',
          // RadiusSettings is required
          'RadiusSettings' => array(
              'RadiusServers' => array('string', ... ),
              'RadiusPort' => integer,
              'RadiusTimeout' => integer,
              'RadiusRetries' => integer,
              'SharedSecret' => 'string',
              'AuthenticationProtocol' => 'string',
              'DisplayLabel' => 'string',
              'UseSameUsername' => true || false,
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - DirectoryId => (string)

    The identifier of the directory to update the RADIUS server information for.

  - RadiusSettings => (associative-array)

    A RadiusSettings object that contains information about the RADIUS server.

    - RadiusServers => (array<string>)

      An array of strings that contains the IP addresses of the RADIUS server endpoints, or the IP addresses of your RADIUS server load balancer.

    - RadiusPort => (int)

      The port that your RADIUS server is using for communications. Your on-premises network must allow inbound traffic over this port from the AWS Directory Service servers.

    - RadiusTimeout => (int)

      The amount of time, in seconds, to wait for the RADIUS server to respond.

    - RadiusRetries => (int)

      The maximum number of times that communication with the RADIUS server is attempted.

    - SharedSecret => (string)

      The shared secret code that was specified when your RADIUS endpoints were created.

    - AuthenticationProtocol => (string: PAP | CHAP | MS-CHAPv1 | MS-CHAPv2 )

      The protocol specified for your RADIUS endpoints.

    - DisplayLabel => (string)

      Not currently used.

    - UseSameUsername => (bool)

      Not currently used.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

### Methods inherited from Aws\Common\Client\AbstractClient

`__call()`, `__construct()`, `createRequest()`, `getAllEvents()`, `getApiVersion()`, `getCredentials()`, `getRegion()`, `getRegions()`, `getSignature()`, `getWaiter()`, `getWaiterFactory()`, `send()`, `setCredentials()`, `setRegion()`, `setWaiterFactory()`, `waitUntil()`

### Methods inherited from Guzzle\Service\Client

`execute()`, `executeMultiple()`, `getCommand()`, `getCommandFactory()`, `getDescription()`, `getInflector()`, `getIterator()`, `getResourceIteratorFactory()`, `prepareCommand()`, `setCommandFactory()`, `setDescription()`, `setInflector()`, `setResourceIteratorFactory()`

### Methods inherited from Guzzle\Http\Client

`delete()`, `expandTemplate()`, `extractPharCacert()`, `get()`, `getBaseUrl()`, `getConfig()`, `getCurlMulti()`, `getDefaultOption()`, `getDefaultUserAgent()`, `getUriTemplate()`, `head()`, `initSsl()`, `options()`, `patch()`, `post()`, `prepareRequest()`, `put()`, `sendMultiple()`, `setBaseUrl()`, `setConfig()`, `setCurlMulti()`, `setDefaultOption()`, `setRequestFactory()`, `setSslVerification()`, `setUriTemplate()`, `setUserAgent()`

### Methods inherited from Guzzle\Common\AbstractHasDispatcher

`addSubscriber()`, `dispatch()`, `getEventDispatcher()`, `setEventDispatcher()`

### Magic methods summary

## Constants summary

`string` | `LATEST_API_VERSION` | `'2015-04-16'` | #

### Constants inherited from Guzzle\Service\Client

`COMMAND_PARAMS`

### Constants inherited from Guzzle\Http\Client

`CURL_OPTIONS`, `DEFAULT_SELECT_TIMEOUT`, `DISABLE_REDIRECTS`, `MAX_HANDLES`, `REQUEST_OPTIONS`, `SSL_CERT_AUTHORITY`

### Constants inherited from Guzzle\Http\ClientInterface

`CREATE_REQUEST`, `HTTP_DATE`

## Properties summary

### Properties inherited from Aws\Common\Client\AbstractClient

`$aggregator`, `$credentials`, `$signature`, `$waiterFactory`

### Properties inherited from Guzzle\Service\Client

`$commandFactory`, `$inflector`, `$resourceIteratorFactory`, `$serviceDescription`

### Properties inherited from Guzzle\Http\Client

`$defaultHeaders`, `$requestFactory`, `$userAgent`

### Properties inherited from Guzzle\Common\AbstractHasDispatcher

`$eventDispatcher`