List of usage examples for com.amazonaws.services.sqs.model SetQueueAttributesResult getSdkHttpMetadata
public SdkHttpMetadata getSdkHttpMetadata()
From source file:com.netflix.conductor.contribs.queue.sqs.SQSObservableQueue.java
License:Apache License
private void addPolicy(List<String> accountsToAuthorize) { logger.info("Authorizing " + accountsToAuthorize + " to the queue " + queueName); Map<String, String> attributes = new HashMap<>(); attributes.put("Policy", getPolicy(accountsToAuthorize)); SetQueueAttributesResult result = client.setQueueAttributes(queueURL, attributes); logger.info("policy attachment result: " + result); logger.info("policy attachment result: status=" + result.getSdkHttpMetadata().getHttpStatusCode()); }