@Generated(value="software.amazon.awssdk:codegen") public final class AppSpecContent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AppSpecContent.Builder,AppSpecContent>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
AppSpecContent.Builder |
Modifier and Type | Method and Description |
---|---|
static AppSpecContent.Builder |
builder() |
String |
content()
The YAML-formatted or JSON-formatted revision string.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends AppSpecContent.Builder> |
serializableBuilderClass() |
String |
sha256()
The SHA256 hash value of the revision content.
|
AppSpecContent.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String 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.
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.
public String sha256()
The SHA256 hash value of the revision content.
public AppSpecContent.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AppSpecContent.Builder,AppSpecContent>
public static AppSpecContent.Builder builder()
public static Class<? extends AppSpecContent.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.