@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AppSpecContent extends Object implements Serializable, Cloneable, StructuredPojo
A revision for an Lambda or Amazon ECS deployment that is a YAML-formatted or JSON-formatted string. For Lambda and
Amazon ECS deployments, the revision is the same as the AppSpec file. This method replaces the deprecated
RawString
data type.
Constructor and Description |
---|
AppSpecContent() |
Modifier and Type | Method and Description |
---|---|
AppSpecContent |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
The YAML-formatted or JSON-formatted revision string.
|
String |
getSha256()
The SHA256 hash value of the revision content.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContent(String content)
The YAML-formatted or JSON-formatted revision string.
|
void |
setSha256(String sha256)
The SHA256 hash value of the revision content.
|
String |
toString()
Returns a string representation of this object.
|
AppSpecContent |
withContent(String content)
The YAML-formatted or JSON-formatted revision string.
|
AppSpecContent |
withSha256(String sha256)
The SHA256 hash value of the revision content.
|
public void setContent(String content)
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.
content
- 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.
public String getContent()
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.
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.
public AppSpecContent withContent(String content)
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.
content
- 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.
public void setSha256(String sha256)
The SHA256 hash value of the revision content.
sha256
- The SHA256 hash value of the revision content.public String getSha256()
The SHA256 hash value of the revision content.
public AppSpecContent withSha256(String sha256)
The SHA256 hash value of the revision content.
sha256
- The SHA256 hash value of the revision content.public String toString()
toString
in class Object
Object.toString()
public AppSpecContent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Privacy | Site terms | Cookie preferences | © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.