Example usage for com.amazonaws.services.ec2.model Volume getKmsKeyId

List of usage examples for com.amazonaws.services.ec2.model Volume getKmsKeyId

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2.model Volume getKmsKeyId.

Prototype


public String getKmsKeyId() 

Source Link

Document

The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the volume.

Usage

From source file:org.xmlsh.aws.util.AWSEC2Command.java

License:BSD License

protected void writeVolume(Volume volume) throws XMLStreamException {
    startElement("volume");

    attribute("volume-id", volume.getVolumeId());
    attribute("snapshot-id ", volume.getSnapshotId());
    attribute("availability-zone", volume.getAvailabilityZone());
    attribute("create-date", Util.formatXSDateTime(volume.getCreateTime()));
    attribute("size", volume.getSize().toString());
    attribute("state", volume.getState());
    attribute("volume-type", volume.getVolumeType());
    attribute("iops", volume.getIops());
    attribute("encrypted", volume.getEncrypted());
    attribute("kms-key-id", volume.getKmsKeyId());

    writeAttachements(volume.getAttachments());
    writeTags(volume.getTags());/*from   ww  w .j  a  v a2 s .  c o m*/
}