libZSservicesZSamazonka-codedeployZSamazonka-codedeploy
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeDeploy.Types.AppSpecContent

Description

 
Synopsis

Documentation

data AppSpecContent Source #

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

See: newAppSpecContent smart constructor.

Constructors

AppSpecContent' 

Fields

  • content :: Maybe Text

    The YAML-formatted or JSON-formatted revision string.

    For an AWS 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 :: Maybe Text

    The SHA256 hash value of the revision content.

Instances

Instances details
Eq AppSpecContent Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.AppSpecContent

Read AppSpecContent Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.AppSpecContent

Show AppSpecContent Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.AppSpecContent

Generic AppSpecContent Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.AppSpecContent

Associated Types

type Rep AppSpecContent :: Type -> Type #

NFData AppSpecContent Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.AppSpecContent

Methods

rnf :: AppSpecContent -> () #

Hashable AppSpecContent Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.AppSpecContent

ToJSON AppSpecContent Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.AppSpecContent

FromJSON AppSpecContent Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.AppSpecContent

type Rep AppSpecContent Source # 
Instance details

Defined in Amazonka.CodeDeploy.Types.AppSpecContent

type Rep AppSpecContent = D1 ('MetaData "AppSpecContent" "Amazonka.CodeDeploy.Types.AppSpecContent" "libZSservicesZSamazonka-codedeployZSamazonka-codedeploy" 'False) (C1 ('MetaCons "AppSpecContent'" 'PrefixI 'True) (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sha256") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newAppSpecContent :: AppSpecContent Source #

Create a value of AppSpecContent with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:content:AppSpecContent', appSpecContent_content - The YAML-formatted or JSON-formatted revision string.

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

$sel:sha256:AppSpecContent', appSpecContent_sha256 - The SHA256 hash value of the revision content.

appSpecContent_content :: Lens' AppSpecContent (Maybe Text) Source #

The YAML-formatted or JSON-formatted revision string.

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

appSpecContent_sha256 :: Lens' AppSpecContent (Maybe Text) Source #

The SHA256 hash value of the revision content.