laravel-expansions / aws-helpers
Simple AWS SDK Helpers
Installs: 110
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
Requires
- aws/aws-sdk-php: ^3.172
README
Simple AWS SDK Helpers
Install
Please install in an existing Laravel project.
composer require laravel-expansions/aws-helpers
Helpers
lambda()
Returns my custom lambda instance for simple operations.
- ->get()
Synchronize the specified Lambda and get the result.
$response = lambda($functionName)->get($payload);
- ->push()
Executes the specified Lambda asynchronously. You will not receive any results.
lambda($functionName)->push($payload);
kinesis()
Returns my custom kinesis instance for simple operations.
- ->putRecord()
Send one record.
kinesis()->putRecord($record);
- ->putRecords()
Send max 500 records.
kinesis()->putRecords($records);
ssm()
Returns my custom ssm instance for simple operations.
$secret = ssm(['SecretName1', 'SecretName2']); $secretValue1 = $secret->SecretName1; $secretValue2 = $secret->SecretName2;
If you want not decryption value then set second argument to false.
$secret = ssm(['SecretName1', 'SecretName2'], false);