Skip to content

Commit c529ee3

Browse files
committed
2.0.4 release. updated example.phhp
1 parent f13cc8f commit c529ee3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

AWS_SMPS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Aws\Ssm\SsmClient;
55

66
class AWS_SMPS {
7-
public const VERSION = '2.0.3';
7+
public const VERSION = '2.0.4';
88

99
public const STRING = 'String';
1010
public const STRING_LIST = 'StringList';

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.3
1+
2.0.4

example.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
require __DIR__ . '/AWS_SMPS.php';
33

44
try {
5-
$smps = new AWS_SMPS('us-east-2', getenv('AWS_PROFILE'));
5+
$profile = getenv('AWS_PROFILE') ?: '';
6+
7+
# Demo using PHP 8.0 named argument. Order does not matter
8+
$smps = new AWS_SMPS(profile: $profile, region: 'us-east-2');
69

710
$smps->put(AWS_SMPS::STRING, 'foo-string', 'bar', 'test string parameter');
811
$smps->put(AWS_SMPS::STRING_LIST, 'foo-string-list', 'a,b,c,d', 'test string list parameter');

0 commit comments

Comments
 (0)