AWS SDK for Java: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 14: Line 14:


=Dependency=
=Dependency=
==SDK 1==
==SDK 2==
 
<syntaxhighlight lang='java'>
<syntaxhighlight lang='groovy'>
 
repositories {
repositories {
      
      
Line 25: Line 23:
dependencies {
dependencies {


    // SDK 1
     implementation 'software.amazon.awssdk:aws-sdk-java:2.1.1'
     implementation 'com.amazonaws:<component-name>:1.<minor>.<patch>'
}
}
</syntaxhighlight>
</syntaxhighlight>


Example:
Maven Repository location: {{External|http://repo1.maven.org/maven2/software/amazon/awssdk/aws-sdk-java/}}
 
==SDK 1==
 
<syntaxhighlight lang='groovy'>
<syntaxhighlight lang='groovy'>
repositories {
repositories {
      
      
Line 39: Line 40:
dependencies {
dependencies {


     implementation 'com.amazonaws:aws-java-sdk-kinesis:1.11.471'
    // SDK 1
     implementation 'com.amazonaws:<component-name>:1.<minor>.<patch>'
}
}
</syntaxhighlight>
</syntaxhighlight>


{{External|http://repo1.maven.org/maven2/com/amazonaws/}}
Example:
 
<syntaxhighlight lang='groovy'>
==SDK 2==
 
<syntaxhighlight lang='java'>
repositories {
repositories {
      
      
Line 55: Line 54:
dependencies {
dependencies {


     implementation 'software.amazon.awssdk:aws-sdk-java:2.1.1'
     implementation 'com.amazonaws:aws-java-sdk-kinesis:1.11.471'
}
}
</syntaxhighlight>
</syntaxhighlight>


Maven Repository location: {{External|http://repo1.maven.org/maven2/software/amazon/awssdk/aws-sdk-java/}}
{{External|http://repo1.maven.org/maven2/com/amazonaws/}}


=Concepts=
=Concepts=

Revision as of 05:07, 3 October 2021

External

Internal

Overview

Dependency

SDK 2

repositories {
    
    mavenCentral()
}

dependencies {

    implementation 'software.amazon.awssdk:aws-sdk-java:2.1.1'
}

Maven Repository location:

http://repo1.maven.org/maven2/software/amazon/awssdk/aws-sdk-java/

SDK 1

repositories {
    
    mavenCentral()
}

dependencies {

    // SDK 1
    implementation 'com.amazonaws:<component-name>:1.<minor>.<patch>'
}

Example:

repositories {
    
    mavenCentral()
}

dependencies {

    implementation 'com.amazonaws:aws-java-sdk-kinesis:1.11.471'
}
http://repo1.maven.org/maven2/com/amazonaws/

Concepts

AWS SDK for Java Concepts

Component APIs