Skip to content

Commit 65c627c

Browse files
authored
Merge branch 'awsdocs:main' into main
2 parents 6e564f8 + e2e5501 commit 65c627c

File tree

83 files changed

+621
-744
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+621
-744
lines changed

.doc_gen/metadata/bedrock-agent-runtime_metadata.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,24 @@ bedrock-agent-runtime_InvokeFlow:
3232
- javascriptv3/example_code/bedrock-agent-runtime/actions/invoke-flow.js
3333
services:
3434
bedrock-agent-runtime: {InvokeFlow}
35+
36+
bedrock-agent-runtime_Scenario_ConverseWithFlow:
37+
title: Converse with an &BRlong; flow
38+
synopsis: use InvokeFlow to converse with an &BRlong; flow that includes an agent node.
39+
category: Basics
40+
guide_topic:
41+
title: Converse with an &BRlong; flow
42+
url: bedrock/latest/userguide/flows-multi-turn-invocation.html
43+
languages:
44+
Python:
45+
versions:
46+
- sdk_version: 3
47+
github: python/example_code/bedrock-agent-runtime
48+
sdkguide:
49+
excerpts:
50+
- description:
51+
snippet_tags:
52+
- python.example_code.bedrock-agent-runtime.flow_conversation.complete
53+
54+
services:
55+
bedrock-agent-runtime: {InvokeFlow}

kotlin/services/apigateway/build.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ repositories {
2727
}
2828
apply(plugin = "org.jlleitschuh.gradle.ktlint")
2929
dependencies {
30-
implementation("aws.sdk.kotlin:apigateway:1.0.30")
31-
implementation("aws.sdk.kotlin:secretsmanager:1.0.30")
32-
implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.30.0")
33-
implementation("aws.smithy.kotlin:http-client-engine-crt:0.30.0")
30+
implementation(platform("aws.sdk.kotlin:bom:1.3.112"))
31+
implementation("aws.sdk.kotlin:apigateway")
32+
implementation("aws.sdk.kotlin:secretsmanager")
33+
implementation("aws.smithy.kotlin:http-client-engine-okhttp")
34+
implementation("aws.smithy.kotlin:http-client-engine-crt")
3435
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
3536
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
3637
implementation("com.fasterxml.jackson.core:jackson-databind:2.14.2")

kotlin/services/appsync/build.gradle.kts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ repositories {
2727
}
2828
apply(plugin = "org.jlleitschuh.gradle.ktlint")
2929
dependencies {
30-
implementation("aws.sdk.kotlin:appsync:1.2.28")
31-
implementation("aws.sdk.kotlin:sts:1.2.28")
32-
implementation("aws.sdk.kotlin:s3:1.2.28")
33-
implementation("aws.sdk.kotlin:secretsmanager:1.2.28")
34-
implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.30.0")
35-
implementation("aws.smithy.kotlin:http-client-engine-crt:0.30.0")
30+
implementation(platform("aws.sdk.kotlin:bom:1.3.112"))
31+
implementation("aws.sdk.kotlin:appsync")
32+
implementation("aws.sdk.kotlin:sts")
33+
implementation("aws.sdk.kotlin:s3")
34+
implementation("aws.sdk.kotlin:secretsmanager")
35+
implementation("aws.smithy.kotlin:http-client-engine-okhttp")
36+
implementation("aws.smithy.kotlin:http-client-engine-crt")
3637
implementation("com.google.code.gson:gson:2.10")
3738
implementation("com.googlecode.json-simple:json-simple:1.1.1")
3839
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")

kotlin/services/athena/build.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ repositories {
2727
}
2828
apply(plugin = "org.jlleitschuh.gradle.ktlint")
2929
dependencies {
30-
implementation("aws.sdk.kotlin:athena:1.2.28")
31-
implementation("aws.sdk.kotlin:secretsmanager:1.2.28")
32-
implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.30.0")
33-
implementation("aws.smithy.kotlin:http-client-engine-crt:0.30.0")
30+
implementation(platform("aws.sdk.kotlin:bom:1.3.112"))
31+
implementation("aws.sdk.kotlin:athena")
32+
implementation("aws.sdk.kotlin:secretsmanager")
33+
implementation("aws.smithy.kotlin:http-client-engine-okhttp")
34+
implementation("aws.smithy.kotlin:http-client-engine-crt")
3435
implementation("com.google.code.gson:gson:2.10")
3536
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
3637
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")

kotlin/services/autoscale/build.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ repositories {
2727
}
2828
apply(plugin = "org.jlleitschuh.gradle.ktlint")
2929
dependencies {
30-
implementation("aws.sdk.kotlin:autoscaling:1.2.28")
31-
implementation("aws.sdk.kotlin:secretsmanager:1.2.28")
32-
implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.30.0")
33-
implementation("aws.smithy.kotlin:http-client-engine-crt:0.30.0")
30+
implementation(platform("aws.sdk.kotlin:bom:1.3.112"))
31+
implementation("aws.sdk.kotlin:autoscaling")
32+
implementation("aws.sdk.kotlin:secretsmanager")
33+
implementation("aws.smithy.kotlin:http-client-engine-okhttp")
34+
implementation("aws.smithy.kotlin:http-client-engine-crt")
3435
implementation("com.google.code.gson:gson:2.10")
3536
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
3637
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")

kotlin/services/cloudformation/build.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ repositories {
2727
}
2828
apply(plugin = "org.jlleitschuh.gradle.ktlint")
2929
dependencies {
30-
implementation("aws.sdk.kotlin:cloudformation:1.2.28")
31-
implementation("aws.sdk.kotlin:secretsmanager:1.2.28")
32-
implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.30.0")
33-
implementation("aws.smithy.kotlin:http-client-engine-crt:0.30.0")
30+
implementation(platform("aws.sdk.kotlin:bom:1.3.112"))
31+
implementation("aws.sdk.kotlin:cloudformation")
32+
implementation("aws.sdk.kotlin:secretsmanager")
33+
implementation("aws.smithy.kotlin:http-client-engine-okhttp")
34+
implementation("aws.smithy.kotlin:http-client-engine-crt")
3435
implementation("com.google.code.gson:gson:2.10")
3536
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
3637
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")

kotlin/services/cloudformation/src/main/kotlin/com/kotlin/cloudformation/CreateStack.kt

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ package com.kotlin.cloudformation
77
import aws.sdk.kotlin.services.cloudformation.CloudFormationClient
88
import aws.sdk.kotlin.services.cloudformation.model.CreateStackRequest
99
import aws.sdk.kotlin.services.cloudformation.model.OnFailure
10-
import aws.sdk.kotlin.services.cloudformation.model.Parameter
1110
import kotlin.system.exitProcess
1211
// snippet-end:[cf.kotlin.create_stack.import]
1312

@@ -32,26 +31,17 @@ suspend fun main(args: Array<String>) {
3231
val stackName = args[0]
3332
val roleARN = args[1]
3433
val location = args[2]
35-
val key = args[3]
36-
val value = args[4]
37-
createCFStack(stackName, roleARN, location, key, value)
34+
createCFStack(stackName, roleARN, location)
3835
}
3936

4037
// snippet-start:[cf.kotlin.create_stack.main]
41-
suspend fun createCFStack(stackNameVal: String, roleARNVal: String?, location: String?, key: String?, value: String?) {
42-
val myParameter =
43-
Parameter {
44-
parameterKey = key
45-
parameterValue = value
46-
}
47-
38+
suspend fun createCFStack(stackNameVal: String, roleARNVal: String?, location: String?) {
4839
val request =
4940
CreateStackRequest {
5041
stackName = stackNameVal
5142
templateUrl = location
5243
roleArn = roleARNVal
5344
onFailure = OnFailure.Rollback
54-
parameters = listOf(myParameter)
5545
}
5646

5747
CloudFormationClient { region = "us-east-1" }.use { cfClient ->

kotlin/services/cloudformation/src/test/kotlin/CloudFormationTest.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ class CloudFormationTest {
3838
stackName = values.stackName.toString()
3939
roleARN = values.roleARN.toString()
4040
location = values.location.toString()
41-
key = values.key.toString()
42-
value = values.value.toString()
4341

4442
/*
4543
val input: InputStream = this.javaClass.getClassLoader().getResourceAsStream("config.properties")
@@ -57,7 +55,7 @@ class CloudFormationTest {
5755
@Order(1)
5856
fun createStackTest() =
5957
runBlocking {
60-
createCFStack(stackName, roleARN, location, key, value)
58+
createCFStack(stackName, roleARN, location)
6159
println("Test 1 passed")
6260
}
6361

kotlin/services/cloudtrail/build.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ repositories {
2727
}
2828
apply(plugin = "org.jlleitschuh.gradle.ktlint")
2929
dependencies {
30-
implementation("aws.sdk.kotlin:cloudtrail:1.2.28")
31-
implementation("aws.sdk.kotlin:secretsmanager:1.2.28")
32-
implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.30.0")
33-
implementation("aws.smithy.kotlin:http-client-engine-crt:0.30.0")
30+
implementation(platform("aws.sdk.kotlin:bom:1.3.112"))
31+
implementation("aws.sdk.kotlin:cloudtrail")
32+
implementation("aws.sdk.kotlin:secretsmanager")
33+
implementation("aws.smithy.kotlin:http-client-engine-okhttp")
34+
implementation("aws.smithy.kotlin:http-client-engine-crt")
3435
implementation("com.google.code.gson:gson:2.10")
3536
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
3637
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")

kotlin/services/cloudwatch/build.gradle.kts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ repositories {
2828

2929
apply(plugin = "org.jlleitschuh.gradle.ktlint")
3030
dependencies {
31-
implementation("aws.sdk.kotlin:cloudwatch:1.2.28")
32-
implementation("aws.sdk.kotlin:cloudwatchevents:1.2.28")
33-
implementation("aws.sdk.kotlin:cloudwatchlogs:1.2.28")
34-
implementation("aws.sdk.kotlin:secretsmanager:1.2.28")
35-
implementation("aws.smithy.kotlin:http-client-engine-okhttp:0.30.0")
36-
implementation("aws.smithy.kotlin:http-client-engine-crt:0.30.0")
31+
implementation(platform("aws.sdk.kotlin:bom:1.3.112"))
32+
implementation("aws.sdk.kotlin:cloudwatch")
33+
implementation("aws.sdk.kotlin:cloudwatchevents")
34+
implementation("aws.sdk.kotlin:cloudwatchlogs")
35+
implementation("aws.sdk.kotlin:secretsmanager")
36+
implementation("aws.smithy.kotlin:http-client-engine-okhttp")
37+
implementation("aws.smithy.kotlin:http-client-engine-crt")
3738
implementation("com.google.code.gson:gson:2.10")
3839
implementation("com.fasterxml.jackson.core:jackson-core:2.14.2")
3940
implementation("com.fasterxml.jackson.core:jackson-databind:2.14.2")

0 commit comments

Comments
 (0)