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

# Class RulesEndpointProvider

Provides endpoints based on a rules configuration file.

Namespace: Aws\Common
Located at Aws/Common/RulesEndpointProvider.php

## Methods summary

- `public` `__construct ( array $patterns )`
- `public static` `fromDefaults ( )`

  Creates and returns the default RulesEndpointProvider based on the public rule sets.

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

## Methods detail

# `public`
`__construct( array $patterns )`

#### Parameters

$patterns
  `array`
  $patterns Hash of endpoint patterns mapping to endpoint configurations.

# `public static `Aws\Common\RulesEndpointProvider``
`fromDefaults( )`

Creates and returns the default RulesEndpointProvider based on the public rule sets.

#### Returns

``Aws\Common\RulesEndpointProvider``
# `public`
`__invoke( array $args = array() )`

### Magic methods summary