Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tuts/001-lightsail-gs/php/GettingStartedScenario.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

require 'vendor/autoload.php';

use Aws\Lightsail\LightsailClient;

$client = new LightsailClient(['region' => 'us-east-1']);
echo "Running Lightsail getting started scenario...\n";
// TODO: setup, interact, teardown
echo "Scenario complete.\n";
20 changes: 20 additions & 0 deletions tuts/001-lightsail-gs/php/LightsailWrapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

namespace Example\Lightsail;

use Aws\Lightsail\LightsailClient;
use Aws\Exception\AwsException;

class LightsailWrapper
{
private LightsailClient $client;

public function __construct(LightsailClient $client)
{
$this->client = $client;
}

// TODO: Add wrapper methods matching CLI tutorial actions
}
1 change: 1 addition & 0 deletions tuts/001-lightsail-gs/php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"require": {"aws/aws-sdk-php": "^3.0"}, "require-dev": {"phpunit/phpunit": "^10.0"}}
20 changes: 20 additions & 0 deletions tuts/002-vpc-gs/php/Ec2Wrapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

namespace Example\Ec2;

use Aws\Ec2\Ec2Client;
use Aws\Exception\AwsException;

class Ec2Wrapper
{
private Ec2Client $client;

public function __construct(Ec2Client $client)
{
$this->client = $client;
}

// TODO: Add wrapper methods matching CLI tutorial actions
}
12 changes: 12 additions & 0 deletions tuts/002-vpc-gs/php/GettingStartedScenario.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

require 'vendor/autoload.php';

use Aws\Ec2\Ec2Client;

$client = new Ec2Client(['region' => 'us-east-1']);
echo "Running Ec2 getting started scenario...\n";
// TODO: setup, interact, teardown
echo "Scenario complete.\n";
1 change: 1 addition & 0 deletions tuts/002-vpc-gs/php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"require": {"aws/aws-sdk-php": "^3.0"}, "require-dev": {"phpunit/phpunit": "^10.0"}}
12 changes: 12 additions & 0 deletions tuts/003-s3-gettingstarted/php/GettingStartedScenario.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

require 'vendor/autoload.php';

use Aws\S3\S3Client;

$client = new S3Client(['region' => 'us-east-1']);
echo "Running S3 getting started scenario...\n";
// TODO: setup, interact, teardown
echo "Scenario complete.\n";
20 changes: 20 additions & 0 deletions tuts/003-s3-gettingstarted/php/S3Wrapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

namespace Example\S3;

use Aws\S3\S3Client;
use Aws\Exception\AwsException;

class S3Wrapper
{
private S3Client $client;

public function __construct(S3Client $client)
{
$this->client = $client;
}

// TODO: Add wrapper methods matching CLI tutorial actions
}
1 change: 1 addition & 0 deletions tuts/003-s3-gettingstarted/php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"require": {"aws/aws-sdk-php": "^3.0"}, "require-dev": {"phpunit/phpunit": "^10.0"}}
20 changes: 20 additions & 0 deletions tuts/004-cloudmap-custom-attributes/php/CloudMapWrapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

namespace Example\CloudMap;

use Aws\CloudMap\CloudMapClient;
use Aws\Exception\AwsException;

class CloudMapWrapper
{
private CloudMapClient $client;

public function __construct(CloudMapClient $client)
{
$this->client = $client;
}

// TODO: Add wrapper methods matching CLI tutorial actions
}
12 changes: 12 additions & 0 deletions tuts/004-cloudmap-custom-attributes/php/GettingStartedScenario.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

require 'vendor/autoload.php';

use Aws\CloudMap\CloudMapClient;

$client = new CloudMapClient(['region' => 'us-east-1']);
echo "Running CloudMap getting started scenario...\n";
// TODO: setup, interact, teardown
echo "Scenario complete.\n";
1 change: 1 addition & 0 deletions tuts/004-cloudmap-custom-attributes/php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"require": {"aws/aws-sdk-php": "^3.0"}, "require-dev": {"phpunit/phpunit": "^10.0"}}
20 changes: 20 additions & 0 deletions tuts/005-cloudfront-gettingstarted/php/CloudFrontWrapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

namespace Example\CloudFront;

use Aws\CloudFront\CloudFrontClient;
use Aws\Exception\AwsException;

class CloudFrontWrapper
{
private CloudFrontClient $client;

public function __construct(CloudFrontClient $client)
{
$this->client = $client;
}

// TODO: Add wrapper methods matching CLI tutorial actions
}
12 changes: 12 additions & 0 deletions tuts/005-cloudfront-gettingstarted/php/GettingStartedScenario.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

require 'vendor/autoload.php';

use Aws\CloudFront\CloudFrontClient;

$client = new CloudFrontClient(['region' => 'us-east-1']);
echo "Running CloudFront getting started scenario...\n";
// TODO: setup, interact, teardown
echo "Scenario complete.\n";
1 change: 1 addition & 0 deletions tuts/005-cloudfront-gettingstarted/php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"require": {"aws/aws-sdk-php": "^3.0"}, "require-dev": {"phpunit/phpunit": "^10.0"}}
20 changes: 20 additions & 0 deletions tuts/008-vpc-private-servers-gs/php/Ec2Wrapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

namespace Example\Ec2;

use Aws\Ec2\Ec2Client;
use Aws\Exception\AwsException;

class Ec2Wrapper
{
private Ec2Client $client;

public function __construct(Ec2Client $client)
{
$this->client = $client;
}

// TODO: Add wrapper methods matching CLI tutorial actions
}
12 changes: 12 additions & 0 deletions tuts/008-vpc-private-servers-gs/php/GettingStartedScenario.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

require 'vendor/autoload.php';

use Aws\Ec2\Ec2Client;

$client = new Ec2Client(['region' => 'us-east-1']);
echo "Running Ec2 getting started scenario...\n";
// TODO: setup, interact, teardown
echo "Scenario complete.\n";
1 change: 1 addition & 0 deletions tuts/008-vpc-private-servers-gs/php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"require": {"aws/aws-sdk-php": "^3.0"}, "require-dev": {"phpunit/phpunit": "^10.0"}}
20 changes: 20 additions & 0 deletions tuts/009-vpc-ipam-gs/php/Ec2Wrapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

namespace Example\Ec2;

use Aws\Ec2\Ec2Client;
use Aws\Exception\AwsException;

class Ec2Wrapper
{
private Ec2Client $client;

public function __construct(Ec2Client $client)
{
$this->client = $client;
}

// TODO: Add wrapper methods matching CLI tutorial actions
}
12 changes: 12 additions & 0 deletions tuts/009-vpc-ipam-gs/php/GettingStartedScenario.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

require 'vendor/autoload.php';

use Aws\Ec2\Ec2Client;

$client = new Ec2Client(['region' => 'us-east-1']);
echo "Running Ec2 getting started scenario...\n";
// TODO: setup, interact, teardown
echo "Scenario complete.\n";
1 change: 1 addition & 0 deletions tuts/009-vpc-ipam-gs/php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"require": {"aws/aws-sdk-php": "^3.0"}, "require-dev": {"phpunit/phpunit": "^10.0"}}
20 changes: 20 additions & 0 deletions tuts/010-cloudmap-service-discovery/php/CloudMapWrapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

namespace Example\CloudMap;

use Aws\CloudMap\CloudMapClient;
use Aws\Exception\AwsException;

class CloudMapWrapper
{
private CloudMapClient $client;

public function __construct(CloudMapClient $client)
{
$this->client = $client;
}

// TODO: Add wrapper methods matching CLI tutorial actions
}
12 changes: 12 additions & 0 deletions tuts/010-cloudmap-service-discovery/php/GettingStartedScenario.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

require 'vendor/autoload.php';

use Aws\CloudMap\CloudMapClient;

$client = new CloudMapClient(['region' => 'us-east-1']);
echo "Running CloudMap getting started scenario...\n";
// TODO: setup, interact, teardown
echo "Scenario complete.\n";
1 change: 1 addition & 0 deletions tuts/010-cloudmap-service-discovery/php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"require": {"aws/aws-sdk-php": "^3.0"}, "require-dev": {"phpunit/phpunit": "^10.0"}}
20 changes: 20 additions & 0 deletions tuts/011-getting-started-batch-fargate/php/BatchWrapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

namespace Example\Batch;

use Aws\Batch\BatchClient;
use Aws\Exception\AwsException;

class BatchWrapper
{
private BatchClient $client;

public function __construct(BatchClient $client)
{
$this->client = $client;
}

// TODO: Add wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

require 'vendor/autoload.php';

use Aws\Batch\BatchClient;

$client = new BatchClient(['region' => 'us-east-1']);
echo "Running Batch getting started scenario...\n";
// TODO: setup, interact, teardown
echo "Scenario complete.\n";
1 change: 1 addition & 0 deletions tuts/011-getting-started-batch-fargate/php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"require": {"aws/aws-sdk-php": "^3.0"}, "require-dev": {"phpunit/phpunit": "^10.0"}}
20 changes: 20 additions & 0 deletions tuts/012-transitgateway-gettingstarted/php/Ec2Wrapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

namespace Example\Ec2;

use Aws\Ec2\Ec2Client;
use Aws\Exception\AwsException;

class Ec2Wrapper
{
private Ec2Client $client;

public function __construct(Ec2Client $client)
{
$this->client = $client;
}

// TODO: Add wrapper methods matching CLI tutorial actions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

require 'vendor/autoload.php';

use Aws\Ec2\Ec2Client;

$client = new Ec2Client(['region' => 'us-east-1']);
echo "Running Ec2 getting started scenario...\n";
// TODO: setup, interact, teardown
echo "Scenario complete.\n";
1 change: 1 addition & 0 deletions tuts/012-transitgateway-gettingstarted/php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"require": {"aws/aws-sdk-php": "^3.0"}, "require-dev": {"phpunit/phpunit": "^10.0"}}
Loading