Example usage for com.amazonaws.services.redshift.model Tag getKey

List of usage examples for com.amazonaws.services.redshift.model Tag getKey

Introduction

In this page you can find the example usage for com.amazonaws.services.redshift.model Tag getKey.

Prototype


public String getKey() 

Source Link

Document

The key, or name, for the resource tag.

Usage

From source file:com.optimalbi.Services.LocalRedshiftService.java

License:Apache License

public Map<String, String> getTags() {
    List<Tag> tags = thisCluster.getTags();
    Map<String, String> tagMap = new HashMap<>();
    for (Tag t : tags) {
        tagMap.put(t.getKey(), t.getValue());
    }//from  ww w. j  av  a  2 s .  c o  m
    return tagMap;
}