List of usage examples for com.amazonaws.services.kinesis.model StreamDescription getStreamARN
public String getStreamARN()
The Amazon Resource Name (ARN) for the stream being described.
From source file:com.haskins.cloudtrailviewer.dialog.resourcedetail.detailpanels.KinesisStreamDetail.java
License:Open Source License
private void buildUI(DescribeStreamResult detail) { this.add(primaryScrollPane, BorderLayout.CENTER); if (detail.getStreamDescription() != null) { StreamDescription stream = detail.getStreamDescription(); if (stream.getHasMoreShards() != null) { primaryTableModel.addRow(new Object[] { "Has More Shards", stream.getHasMoreShards() }); }// ww w .j a va 2s . c o m if (stream.getStreamARN() != null) { primaryTableModel.addRow(new Object[] { "Stream Arn", stream.getStreamARN() }); } if (stream.getStreamName() != null) { primaryTableModel.addRow(new Object[] { "Stream Name", stream.getStreamName() }); } if (stream.getStreamStatus() != null) { primaryTableModel.addRow(new Object[] { "Stram Status", stream.getStreamStatus() }); } } }
From source file:org.lendingclub.mercator.aws.KinesisScanner.java
License:Apache License
private void project(StreamDescription description) { ObjectNode n = mapper.createObjectNode(); n.put("aws_account", getAccountId()); n.put("aws_region", getRegion().getName()); n.put("aws_arn", description.getStreamARN()); n.put("name", description.getStreamName()); n.put("aws_name", description.getStreamName()); n.put("aws_status", description.getStreamStatus()); n.put("aws_streamCreationTimestamp", description.getStreamCreationTimestamp().getTime()); n.put("aws_retentionPeriodHours", description.getRetentionPeriodHours()); n.put("aws_shardCount", description.getShards().size()); incrementEntityCount();//from ww w. j av a 2 s . com String cypher = "merge (k:AwsKinesisStream {aws_arn:{aws_arn}}) set k+={props}, k.updateTs=timestamp() return k"; getNeoRxClient().execCypher(cypher, "aws_arn", n.path("aws_arn").asText(), "props", n); cypher = "match (a:AwsAccount {aws_account:{account}}), (k:AwsKinesisStream {aws_account:{account}}) MERGE (a)-[r:OWNS]->(k) set r.updateTs=timestamp()"; getNeoRxClient().execCypher(cypher, "account", getAccountId()); }