Example usage for com.amazonaws.services.ec2 AmazonEC2AsyncClient createTags

List of usage examples for com.amazonaws.services.ec2 AmazonEC2AsyncClient createTags

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2 AmazonEC2AsyncClient createTags.

Prototype

CreateTagsResult createTags(CreateTagsRequest createTagsRequest);

Source Link

Document

Adds or overwrites the specified tags for the specified Amazon EC2 resource or resources.

Usage

From source file:com.vmware.photon.controller.model.adapters.awsadapter.AWSUtils.java

License:Open Source License

public static void createTags(Collection<String> resources, Collection<Tag> tags, AmazonEC2AsyncClient client) {
    CreateTagsRequest req = new CreateTagsRequest().withResources(resources).withTags(tags);

    client.createTags(req);
}