Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Where can I find an implementation of "AWSEC2Client"
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nirmal Fernando  
View profile  
 More options Nov 2 2012, 7:12 am
From: Nirmal Fernando <nir...@wso2.com>
Date: Fri, 2 Nov 2012 16:42:28 +0530
Local: Fri, Nov 2 2012 7:12 am
Subject: Where can I find an implementation of "AWSEC2Client"

Hi,

$Subject please? Which is needed when you create a new instance of
'ImportOrReturnExistingKeypair'.

Am I missing something?

--

Thanks & regards,
Nirmal

Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Downer  
View profile  
 More options Nov 2 2012, 7:40 am
From: Richard Downer <richard.dow...@cloudsoftcorp.com>
Date: Fri, 2 Nov 2012 11:40:06 +0000
Local: Fri, Nov 2 2012 7:40 am
Subject: Re: Where can I find an implementation of "AWSEC2Client"

Nirmal,

Here's my EC2 cheat sheet:

        ContextBuilder builder = ContextBuilder.newBuilder("aws-ec2")
                .credentials(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
                .modules(ImmutableSet.<Module>of(new SLF4JLoggingModule()))
                .overrides(overrides);

        ComputeService computeService =
builder.buildView(ComputeServiceContext.class).getComputeService();
        ComputeServiceContext context = computeService.getContext();
        Logger logger =
context.getUtils().getLoggerFactory().getLogger(MyClass.class.getName());
        RestContext<AWSEC2Client, AWSEC2AsyncClient> restContext =
context.unwrap(RestContext.class);
        AWSEC2Client syncApi = restContext.getApi();
        AWSEC2AsyncClient asyncApi = restContext.getAsyncApi();

Possibly it's not the ideal version - the furtling with ComputeService and
ComputeServiceContext could probably be done in fewer keystrokes! - but in
the last couple of lines you can see where an AWSEC2Client reference can be
obtained.

Richard.

On 2 November 2012 11:12, Nirmal Fernando <nir...@wso2.com> wrote:

--
Richard Downer • Lead Engineer • Cloudsoft Corporation •
http://www.cloudsoftcorp.com
Skype richardcloudsoft • Twitter @FrontierTown

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nirmal Fernando  
View profile  
 More options Nov 2 2012, 7:47 am
From: Nirmal Fernando <nir...@wso2.com>
Date: Fri, 2 Nov 2012 17:17:36 +0530
Local: Fri, Nov 2 2012 7:47 am
Subject: Re: Where can I find an implementation of "AWSEC2Client"

On Fri, Nov 2, 2012 at 5:10 PM, Richard Downer <

Thanks Richard! This will be really useful.

--

Thanks & regards,
Nirmal

Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adrian Cole  
View profile  
 More options Nov 2 2012, 1:16 pm
From: Adrian Cole <adrian.f.c...@gmail.com>
Date: Fri, 2 Nov 2012 10:16:09 -0700
Local: Fri, Nov 2 2012 1:16 pm
Subject: Re: Where can I find an implementation of "AWSEC2Client"

Hi, Nirmal.

I can't seem to find the doc we have on this, but here's the quick answer.
This is a synchronous proxy to AWSEC2AsyncClient which is implemented by
reading jaxrs and other annotations.

HTH
On Nov 2, 2012 4:12 AM, "Nirmal Fernando" <nir...@wso2.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »