Skip to content

Instantly share code, notes, and snippets.

Tommy Shiou tommyshiou

Block or report user

Report or block tommyshiou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tommyshiou / AWSManagedSecretExample
Created Aug 23, 2019
AWSManagedSecret annotation example
View AWSManagedSecretExample
public class ExampleClass {
@Inject @AwsManagedSecret("credentials/mydb/readonly-user")
Secret<Credentials> myDbReadonlyCredentials;
public void readDataFromDb() {
String password = myDbReadonlyCredentials.getSecretValue().getPassword()
// Use password to set up connection
View StatusUpdateStreamingListener.scala
class StatusUpdateStreamingListener(
pipelineName: String,
pipelineId: Long) extends StreamingListener {
@Inject var statusTrackerClient: StatusTrackerClient = _
override def onBatchCompleted(batch: StreamingListenerBatchCompleted): Unit = {
val msg = StreamingStatusMessage.newBuilder()
You can’t perform that action at this time.