Examples of CreateTagsRequest


Examples of com.amazonaws.services.ec2.model.CreateTagsRequest

  }

  public void tagCreate(final String resourceId, final String key,
      final String value) {

    final CreateTagsRequest request = new CreateTagsRequest();

    final Collection<String> resourceList = new ArrayList<String>(1);
    resourceList.add(resourceId);

    final Collection<Tag> tagList = new ArrayList<Tag>(1);
    tagList.add(new Tag(key, value));

    request.setResources(resourceList);
    request.setTags(tagList);

    logger.info("tag create request=" + request);

    amazonClient.createTags(request);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.