AppSpecContent - Amazon CodeDeploy
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

AppSpecContent

A revision for an Amazon Lambda or Amazon ECS deployment that is a YAML-formatted or JSON-formatted string. For Amazon Lambda and Amazon ECS deployments, the revision is the same as the AppSpec file. This method replaces the deprecated RawString data type.

Contents

content

The YAML-formatted or JSON-formatted revision string.

For an Amazon Lambda deployment, the content includes a Lambda function name, the alias for its original version, and the alias for its replacement version. The deployment shifts traffic from the original version of the Lambda function to the replacement version.

For an Amazon ECS deployment, the content includes the task name, information about the load balancer that serves traffic to the container, and more.

For both types of deployments, the content can specify Lambda functions that run at specified hooks, such as BeforeInstall, during a deployment.

Type: String

Required: No

sha256

The SHA256 hash value of the revision content.

Type: String

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: