Skip to content

Commit

Permalink
Swap snippet tags for Kotlin's presigned URL example (#5618)
Browse files Browse the repository at this point in the history
Swap snippets

's3.kotlin.getObjectMoreOptions.main' with 's3.kotlin.presign_putObject.main'
add 'settings.gradle.kts' to s3 directory to appease Intellij's need for a project model
https://sim.amazon.com/issues/V1051009809
  • Loading branch information
tkhill-AWS authored and ford-at-aws committed Dec 15, 2023
1 parent 3ac6230 commit 7705788
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .doc_gen/metadata/s3_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2373,15 +2373,15 @@ s3_Scenario_PresignedUrl:
github: kotlin/services/s3
sdkguide: sdk-for-kotlin/latest/developer-guide/presign-requests.html
excerpts:
- description: Create a GetObject presigned request and use the URL to download an object.
- description: Create a <code>GetObject</code> presigned request and use the URL to download an object.
snippet_tags:
- s3.kotlin.presign_getObject.main
- description: Create a GetObject presigned request with advanced options and use the URL to download an object.
snippet_tags:
- s3.kotlin.presign_putObject.main
- description: Create a PutObject presigned request and use it to upload an object.
- description: Create a <code>GetObject</code> presigned request with advanced options and use the URL to download an object.
snippet_tags:
- s3.kotlin.presign_getObjectMoreOptions.main
- description: Create a <code>PutObject</code> presigned request and use it to upload an object.
snippet_tags:
- s3.kotlin.presign_putObject.main
Rust:
versions:
- sdk_version: 1
Expand Down
19 changes: 14 additions & 5 deletions kotlin/services/s3/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,24 @@ repositories {
mavenCentral()
jcenter()
}

apply(plugin = "org.jlleitschuh.gradle.ktlint")

dependencies {
implementation("aws.sdk.kotlin:s3:0.30.1-beta")
implementation("aws.sdk.kotlin:secretsmanager:0.30.1-beta")
implementation("com.google.code.gson:gson:2.10")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("aws.sdk.kotlin:s3-jvm:0.26.0-beta")
implementation("org.apache.logging.log4j:log4j-slf4j2-impl:2.20.0")
implementation("com.squareup.okhttp3:okhttp:4.10.0")
implementation("aws.smithy.kotlin:aws-signing-crt:0.21.0")
testImplementation(kotlin("test"))
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
implementation("com.fasterxml.jackson.core:jackson-databind:2.14.2")
}

tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}

tasks.test {
useJUnitPlatform()
}
1 change: 1 addition & 0 deletions kotlin/services/s3/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "s3"

0 comments on commit 7705788

Please sign in to comment.