CodeDeploy client

This page contains some example usage for CodeDeploy. There are other resources that explain authentication and configuration.

The CodeDeploy package could be installed with Composer.

composer require async-aws/code-deploy

Usage

Sets the result of a Lambda validation function

use AsyncAws\CodeDeploy\CodeDeployClient; use AsyncAws\CodeDeploy\Enum\LifecycleEventStatus; use AsyncAws\CodeDeploy\Input\PutLifecycleEventHookExecutionStatusInput; $codeDeploy = new CodeDeployClient(); $event = []; // fetched from lambda $status = $codeDeploy->putLifecycleEventHookExecutionStatus(new PutLifecycleEventHookExecutionStatusInput([ 'deploymentId' => $event['deploymentId'], 'lifecycleEventHookExecutionId' => $event['lifecycleEventHookExecutionId'], 'status' => LifecycleEventStatus::SUCCEEDED ])); echo 'ExecutionId: '. $status->getLifecycleEventHookExecutionId();