public function create($credentials, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'Credentials' => $credentials,
            'FriendlyName' => $options['friendlyName'],
            'AccountSid' => $options['accountSid'],
        ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new AwsInstance($this->version, $payload);
    }
public function create($credentials, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'Credentials' => $credentials,
            'FriendlyName' => $options['friendlyName'],
            'AccountSid' => $options['accountSid'],
        ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new AwsInstance($this->version, $payload);
    }
public function create ( $ credentials , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'Credentials' => $ credentials , 'FriendlyName' => $ options [ 'friendlyName' ] , 'AccountSid' => $ options [ 'accountSid' ] , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new AwsInstance ( $ this -> version , $ payload ) ; }
Create a new AwsInstance

@param string $credentials A string that contains the AWS access credentials
in the format
<AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY>
@param array|Options $options Optional Arguments
@return AwsInstance Newly created AwsInstance
@throws TwilioException When an HTTP error occurs.
Create a new AwsInstance