Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap snippet tags for Kotlin's presigned URL example #5618

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading