Coder Social home page Coder Social logo

alfonsof / aws-java-v2-examples Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 2.0 18.03 MB

Java examples on AWS (Amazon Web Services) using AWS SDK for Java (SDK V2). How to manage EC2 instances, Lambda Functions, S3 buckets, etc.

License: MIT License

Java 100.00%
java aws aws-lambda ec2 aws-s3 lambda-functions s3 s3-bucket s3-storage aws-ec2

aws-java-v2-examples's Introduction

Java examples on AWS (Amazon Web Services) - SDK V2

This repo contains Java code examples on AWS (Amazon Web Services).

These examples show how to use Java 8 and AWS SDK for Java (SDK V2) in order to manage Amazon services on AWS.

AWS SDK for Java allows Java developers to write software that makes use of Amazon services like EC2, S3 and Lambda functions.

If you have to use AWS SDK for Java (SDK V1) you have the Java code examples on AWS following this link: https://github.com/alfonsof/aws-java-examples/

Quick start

You must have an AWS (Amazon Web Services) account.

The code for the samples is contained in individual folders on this repository.

For instructions on running the code, please consult the README in each folder.

This is the list of examples:

Compute - Amazon EC2:

  • awsec2instances - AWS EC2 instances: Example of how to handle AWS EC2 instances.

Compute - AWS Lambda:

  • Lambda function handler:

    • awslambdahello - AWS Lambda Function Hello World: Example of how to handle an AWS simple Lambda function and a text input.
    • awslambdahellojson - AWS Lambda Function Hello World JSON: Example of how to handle an AWS simple Lambda function and a JSON input, using classes for Request and Response.
    • awslambdahttprequest - AWS Lambda Function Http Request: Example of how to handle an AWS Lambda Function, show the parameters of the request and respond a message including the parameters.
    • awslambdas3event - AWS Lambda Function S3 Event: Example of how to handle an AWS Lambda Function and send information to the log about an object when it appears in a S3 bucket.
    • awslambdas3copy - AWS Lambda Function S3 Copy: Example of how to handle an AWS Lambda function and copy an object when it appears in a S3 bucket to another S3 bucket.
    • awslambdas3move - AWS Lambda Function S3 Move: Example of how to handle an AWS Lambda function and move an object when it appears in a S3 bucket to another S3 bucket.
  • Lambda service client - Service operations:

    • awslambdacreate - AWS Lambda Function Create: Example of how to handle an AWS Lambda function and create it.
    • awslambdaupdate - AWS Lambda Function Update: Example of how to handle an AWS Lambda function and update it.
    • awslambdainvoke - AWS Lambda Function Invoke: Example of how to handle an AWS Lambda function and invoke it.
    • awslambdalist - AWS Lambda Function List: Example of how to handle an AWS Lambda function and list its information.
    • awslambdalistall - AWS Lambda Function List All: Example of how to handle AWS Lambda functions and list all Lambda functions and their information.
    • awslambdadelete - AWS Lambda Function Delete: Example of how to handle an AWS Lambda function and delete it.

Storage - Amazon S3:

  • awss3create - AWS S3 Create: Example of how to handle S3 buckets and create a new S3 bucket.
  • awss3delete - AWS S3 Delete: Example of how to handle S3 buckets and delete a S3 bucket.
  • awss3list - AWS S3 List: Example of how to handle S3 buckets and list information about the objects in a S3 bucket.
  • awss3listall - AWS S3 List All: Example of how to handle S3 buckets and list information about all S3 buckets and the objects that they contain.
  • awss3upload - AWS S3 Upload: Example of how to handle S3 buckets and upload a local file to a S3 bucket.
  • awss3download - AWS S3 Download: Example of how to handle S3 buckets and download an object from a S3 bucket to a local file.
  • awss3deleteobject - AWS S3 Delete Object: Example of how to handle S3 buckets and delete an object in a S3 bucket.
  • awss3copy - AWS S3 Copy: Example of how to handle S3 buckets and copy an object from a S3 bucket to another S3 bucket.
  • awss3move - AWS S3 Move: Example of how to handle S3 buckets and move an object from a S3 bucket to another S3 bucket.

License

This code is released under the MIT License. See LICENSE file.

aws-java-v2-examples's People

Contributors

alfonsof avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.