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
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 | |
... | |
} |
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
class StatusUpdateStreamingListener( | |
pipelineName: String, | |
pipelineId: Long) extends StreamingListener { | |
@Inject var statusTrackerClient: StatusTrackerClient = _ | |
override def onBatchCompleted(batch: StreamingListenerBatchCompleted): Unit = { | |
val msg = StreamingStatusMessage.newBuilder() | |
.setPipelineName(pipelineName) |