Skip to content

Commit

Permalink
fix(SDK-Java): Generic SDK Error to Opaque & Back (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
texastony authored Jul 3, 2024
1 parent 5ec3c4b commit f832ad1
Show file tree
Hide file tree
Showing 36 changed files with 20,386 additions and 1,103 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ resource CryptographicMaterialsManager {
operations: [GetEncryptionMaterials, DecryptMaterials]
}

/////////////////
// CMM Structures

@reference(resource: CryptographicMaterialsManager)
structure CryptographicMaterialsManagerReference {}

/////////////////
// CMM Operations

operation GetEncryptionMaterials {
Expand Down Expand Up @@ -113,7 +111,6 @@ structure DecryptMaterialsOutput {
decryptionMaterials: DecryptionMaterials
}

///////////////////
// CMM Constructors

@positional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ structure EntryAlreadyExists {
message: String,
}

///////////////////
// Materials Cache Constructors

@positional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ use aws.polymorph#reference

use com.amazonaws.dynamodb#DynamoDB_20120810

///////////////////
// Basic structures

string DdbTableArn

///////////
// Clients

@reference(service: DynamoDB_20120810)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace aws.cryptography.materialProviders

/////////////
// Commitment

//= aws-encryption-sdk-specification/framework/commitment-policy.md#supported-format-commitment-policy-enum
Expand Down Expand Up @@ -53,7 +52,6 @@ union CommitmentPolicy {
DBE: DBECommitmentPolicy
}

//////////
// Padding

// Values come from: https://github.com/awslabs/aws-encryption-sdk-specification/blob/master/framework/raw-rsa-keyring.md#supported-padding-schemes
Expand Down Expand Up @@ -81,7 +79,6 @@ union CommitmentPolicy {
])
string PaddingScheme

//////////////////////////
// AES wrapping algorithms
@enum([
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ resource Keyring {
operations: [OnEncrypt, OnDecrypt]
}

/////////////////////
// Keyring Structures

@reference(resource: Keyring)
Expand Down Expand Up @@ -45,7 +44,6 @@ list GrantTokenList {
}


/////////////////////
// Keyring Operations

//= aws-encryption-sdk-specification/framework/keyring-interface.md#onencrypt
Expand Down Expand Up @@ -89,7 +87,6 @@ structure OnDecryptOutput {
}


///////////////////////
// Keyring Constructors

@positional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use aws.polymorph#javadoc

use com.amazonaws.kms#TrentService

///////////////////
// Basic structures

string KmsKeyId
Expand All @@ -28,13 +27,11 @@ list AccountIdList {
member: AccountId
}

//////////
// Clients

@reference(service: TrentService)
structure KmsClientReference {}

///////////////////
// Client Suppliers

@extendable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ integer PositiveInteger
@range(min: 0)
long PositiveLong

/////////////
// AwsCryptographicMaterialProviders Creation
@aws.polymorph#localService(
sdkId: "MaterialProviders",
Expand Down Expand Up @@ -79,7 +78,6 @@ service AwsCryptographicMaterialProviders {

structure MaterialProvidersConfig {}

///////////////////
// Errors

@error("client")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ string Utf8Bytes
//# While these structures will usually be represented as objects, lower level languages MAY represent
//# these fields in a less strictly defined way as long as all field properties are still upheld.

///////////////////////////////////
// Encryption Materials

// In the future, we have several improvements we can consider here:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace aws.cryptography.materialProviders

///////////////////////////////////
// Algorithm Suites

// For now, the actual properties of algorithm suites are only used by internal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ map EncryptionContext {
value: Utf8Bytes,
}

///////////////////
// Errors

@error("client")
Expand Down
1 change: 1 addition & 0 deletions AwsCryptographicMaterialProviders/project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This file stores the top level dafny version information.
# All elements of the project need to agree on this version.
dafnyVersion=4.2.0
dafnyRuntimeJavaVersion=4.2.0
1 change: 0 additions & 1 deletion AwsCryptographyPrimitives/Model/primitives.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ service AwsCryptographicPrimitives {

structure CryptoConfig {}

///////////////////
// Errors

@error("client")
Expand Down
1 change: 1 addition & 0 deletions AwsCryptographyPrimitives/project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This file stores the top level dafny version information.
# All elements of the project need to agree on this version.
dafnyVersion=4.2.0
dafnyRuntimeJavaVersion=4.2.0
193 changes: 0 additions & 193 deletions ComAmazonawsDynamodb/codegen-patches/java/dafny-4.1.0.patch

This file was deleted.

Loading

0 comments on commit f832ad1

Please sign in to comment.