-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
165 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...mbda-validator/src/main/java/dev/ancaghenade/shipmentpicturelambdavalidator/Location.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package dev.ancaghenade.shipmentpicturelambdavalidator; | ||
|
||
import lombok.Getter; | ||
import software.amazon.awssdk.regions.Region; | ||
|
||
@Getter | ||
public enum Location { | ||
|
||
|
||
REGION(Region.US_EAST_1); | ||
|
||
private final Region region; | ||
Location(Region region) { | ||
this.region = region; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 10 additions & 11 deletions
21
...lidator/src/main/java/dev/ancaghenade/shipmentpicturelambdavalidator/SNSClientHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 17 additions & 7 deletions
24
src/main/java/dev/ancaghenade/shipmentlistdemo/buckets/BucketName.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
package dev.ancaghenade.shipmentlistdemo.buckets; | ||
|
||
import lombok.Getter; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.PropertySource; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Getter | ||
public enum BucketName { | ||
@Component | ||
@Configuration | ||
@PropertySource(value = "classpath:buckets.properties") | ||
public class BucketName { | ||
|
||
SHIPMENT_PICTURE("shipment-picture-bucket"); | ||
@Value("${shipment-picture-bucket}") | ||
private String shipmentPictureBucket; | ||
@Value("${shipment-picture-bucket-validator}") | ||
private String shipmentPictureValidatorBucket; | ||
|
||
private final String bucketName; | ||
public String getShipmentPictureBucket() { | ||
return shipmentPictureBucket; | ||
} | ||
|
||
BucketName(String bucketName) { | ||
this.bucketName = bucketName; | ||
public String getShipmentPictureValidatorBucket() { | ||
return shipmentPictureValidatorBucket; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
shipment-picture-bucket=shipment-picture-bucket-concise-malamute | ||
shipment-picture-bucket-validator=shipment-picture-lambda-validator-bucket-concise-malamute |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.