Skip to content

Commit

Permalink
Add checksum algorithm to model enum
Browse files Browse the repository at this point in the history
  • Loading branch information
kstich committed Oct 14, 2024
1 parent 45b2476 commit c9374b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ docs/src
*.iml
*.iws

# Fleet
.fleet/

# VSCode
bin/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
public final class HttpChecksumTrait extends AbstractTrait implements ToSmithyBuilder<HttpChecksumTrait> {
public static final ShapeId ID = ShapeId.from("aws.protocols#httpChecksum");
public static final String CHECKSUM_PREFIX = "x-amz-checksum-";
// This list should be in sync with the trait definition in `aws.protocols.smithy`.
public static final List<String> CHECKSUM_ALGORITHMS = ListUtils.of("CRC64NVME", "CRC32C", "CRC32",
"SHA1", "SHA256");
public static final List<String> VALIDATION_MODES = ListUtils.of("ENABLED");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,12 @@ list ChecksumAlgorithmSet {
member: ChecksumAlgorithm
}

// This enum should be in sync with the `HttpChecksumTrait` list.
@private
enum ChecksumAlgorithm {
/// CRC64NVME
CRC64NVME

/// CRC32C
CRC32C

Expand Down

0 comments on commit c9374b9

Please sign in to comment.