Skip to content

Instantly share code, notes, and snippets.

@onuratci
Created May 23, 2018 08:19
Show Gist options
  • Select an option

  • Save onuratci/b11048679c95160bc98b87c997c02c6c to your computer and use it in GitHub Desktop.

Select an option

Save onuratci/b11048679c95160bc98b87c997c02c6c to your computer and use it in GitHub Desktop.
use Aws\Common\Aws;
// Create a service builder using a configuration file
$aws = Aws::factory('/path/to/my_config.json');
// Get the client from the builder by namespace
$client = $aws->get('Kinesis');
$result = $client->putRecords(array(
// Records is required
'Records' => array(
array(
// Data is required
'Data' => 'string',
'ExplicitHashKey' => 'string',
// PartitionKey is required
'PartitionKey' => 'string',
),
// ... repeated
),
// StreamName is required
'StreamName' => 'string',
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment