AWS SDK for Java Version 2: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(12 intermediate revisions by the same user not shown)
Line 2: Line 2:
* Maven Repository Location https://repo1.maven.org/maven2/software/amazon/awssdk/aws-sdk-java/
* Maven Repository Location https://repo1.maven.org/maven2/software/amazon/awssdk/aws-sdk-java/
* Developer Guide https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/home.html
* Developer Guide https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/home.html
* API Reference: https://sdk.amazonaws.com/java/api/latest/


=Internal=
=Internal=
* [[AWS_SDK_for_Java#Subjects|AWS SDK for Java]]
* [[AWS_SDK_for_Java#Subjects|AWS SDK for Java]]
=Concepts=
{{Internal|AWS SDK for Java Concepts|AWS SDK for Java Concepts}}


=Gradle Project
=<span id='Gradle_Project'></span>Gradle Project Setup=
{{External|https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/setup-project-gradle.html}}
{{External|https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/setup-project-gradle.html}}


Add the AWS SDK 2 BOM to the <code>dependencies</code> section of the file, and then declare individual SDK dependencies without a version:


 
<syntaxhighlight lang='groovy'>
 
=Dependency=
==SDK 2==
<syntaxhighlight lang='java'>
repositories {
repositories {
   
mavenCentral()
    mavenCentral()
}
}


dependencies {
dependencies {
 
implementation platform('software.amazon.awssdk:bom:2.17.51')
    implementation 'software.amazon.awssdk:aws-sdk-java:2.17.51'
// Declare individual SDK dependencies without version
implementation 'software.amazon.awssdk:kinesis'
implementation 'software.amazon.awssdk:s3'
}
}
</syntaxhighlight>
</syntaxhighlight>
=<span id='Component_APIs'></span>Component APIs that Use SDK for Java Version 2=
* [[Amazon Kinesis Stream with AWS SDK for Java#Overview|Amazon Kinesis Stream with AWS SDK for Java]]
* [[AWS_Java_Lambda_Development#Dependencies|Lambda]]
* [[Amazon Encryption SDK]]

Latest revision as of 05:52, 3 October 2021

External

Internal

Concepts

AWS SDK for Java Concepts

Gradle Project Setup

https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/setup-project-gradle.html

Add the AWS SDK 2 BOM to the dependencies section of the file, and then declare individual SDK dependencies without a version:

repositories {
 mavenCentral()
}

dependencies {
 implementation platform('software.amazon.awssdk:bom:2.17.51')
 // Declare individual SDK dependencies without version
 implementation 'software.amazon.awssdk:kinesis'
 implementation 'software.amazon.awssdk:s3'
}

Component APIs that Use SDK for Java Version 2