Class: Aws::CodeDeploy::Types::AppSpecContent

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/types.rb

Overview

Note:

When making an API call, you may pass AppSpecContent data as a hash:

{
  content: "RawStringContent",
  sha256: "RawStringSha256",
}

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#contentString

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.

Returns:

  • (String)


159
160
161
162
163
164
# File 'gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/types.rb', line 159

class AppSpecContent < Struct.new(
  :content,
  :sha256)
  SENSITIVE = []
  include Aws::Structure
end

#sha256String

The SHA256 hash value of the revision content.

Returns:

  • (String)


159
160
161
162
163
164
# File 'gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/types.rb', line 159

class AppSpecContent < Struct.new(
  :content,
  :sha256)
  SENSITIVE = []
  include Aws::Structure
end