Skip to content

AppSpecContent

Source code in docs_src/capo_codedeploy/types/app_spec_content.py
class AppSpecContent(TypedDict, closed=True):
    content: NotRequired["capo_codedeploy.types.raw_string_content.RawStringContent"]
    """<p> The YAML-formatted or JSON-formatted revision string. </p> <p> For an 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. </p> <p> For an Amazon ECS deployment, the content includes the task name, information about the load balancer that serves traffic to the container, and more. </p> <p> For both types of deployments, the content can specify Lambda functions that run at specified hooks, such as <code>BeforeInstall</code>, during a deployment. </p>"""
    sha256: NotRequired["capo_codedeploy.types.raw_string_sha256.RawStringSha256"]
    """<p> The SHA256 hash value of the revision content. </p>"""

content instance-attribute

content: NotRequired[RawStringContent]

The YAML-formatted or JSON-formatted revision string.

For an 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.

sha256 instance-attribute

sha256: NotRequired[RawStringSha256]

The SHA256 hash value of the revision content.