Skip to content

Commit 737de80

Browse files
committed
AWS SDKs folder done
1 parent c14f20d commit 737de80

File tree

7 files changed

+7
-17
lines changed

7 files changed

+7
-17
lines changed
File renamed without changes.

src/content/docs/aws/integrations/aws-sdks/java.mdx

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ S3Client s3Client = S3Client.builder()
8282
<Tabs>
8383
<TabItem label="v1">
8484
```java
85-
8685
// Existing bucket name.
8786
final String BUCKET_NAME = "records";
8887

@@ -135,29 +134,21 @@ GetObjectRequest getObjectRequest = GetObjectRequest.builder()
135134

136135
// Retrieving the object from the bucket.
137136
ResponseInputStream<GetObjectResponse> response = s3Client.getObject(getObjectRequest);
138-
139137
```
140138
</TabItem>
141139
</Tabs>
142140

143141
### DynamoDB Service
144142

145143
Another interesting case is interacting with the DynamoDB service.
146-
Here we can see code snippets of
147-
a DynamoDB client inserting an entity of type `Person` into a table with the same name.
148-
Once the object is in
149-
the database, we would like to retrieve it as well.
150-
Just like the example before, the scripts to create the AWS services on LocalStack can be found under
151-
the `src/main/resources` folder of each module in the repository.
144+
Here we can see code snippets of a DynamoDB client inserting an entity of type `Person` into a table with the same name.
145+
Once the object is in the database, we would like to retrieve it as well.
146+
Just like the example before, the scripts to create the AWS services on LocalStack can be found under the `src/main/resources` folder of each module in the repository.
152147

153148
Pay particular attention to the handling of the data model in the v2 example.
154-
As part of improvements, some
155-
boilerplate code can be abstracted with the help of specific annotations, which help label the Java bean, the
156-
partition key and even specify converters for certain data types.
157-
Unfortunately, the enhanced mapping in v2 does not support Date type, but a handwritten converter is enough to
158-
cater to the application's needs.
159-
The full list of supported converters can be found
160-
[here](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/enhanced/dynamodb/internal/converter/attribute/package-summary.html).
149+
As part of improvements, some boilerplate code can be abstracted with the help of specific annotations, which help label the Java bean, the partition key and even specify converters for certain data types.
150+
Unfortunately, the enhanced mapping in v2 does not support Date type, but a handwritten converter is enough to cater to the application's needs.
151+
The full list of supported converters can be found [here](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/enhanced/dynamodb/internal/converter/attribute/package-summary.html).
161152

162153
#### Configuring the DynamoDB Client
163154

src/content/docs/aws/integrations/aws-sdks/javascript.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ s3.send(new ListBucketsCommand({}))
116116
</Tabs>
117117

118118
:::note
119-
120119
In case of issues resolving S3 DNS record, we can fallback to `http://localhost:4566` in combination with the provider setting `forcePathStyle: true` (see the specific way of setting this parameter for each SDK above).
121120
The S3 service endpoint is slightly different from the other service endpoints, because AWS is deprecating path-style based access for hosting buckets.
122121
See [S3 documentation](user-guide/aws/s3) about endpoints. {/*TODO: fix link*/}
File renamed without changes.
File renamed without changes.

src/content/docs/aws/integrations/aws-sdks/python-boto3.mdx renamed to src/content/docs/aws/integrations/aws-sdks/python-boto3.md

File renamed without changes.

src/content/docs/aws/integrations/aws-sdks/ruby.mdx renamed to src/content/docs/aws/integrations/aws-sdks/ruby.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The [AWS SDK for Ruby](https://aws.amazon.com/sdk-for-ruby/), like other AWS SDK
1414

1515
Here is an example of how to create a S3 bucket with the AWS configuration endpoint set to LocalStack:
1616

17-
```ruby
17+
```ruby showLineNumbers
1818
require "aws-sdk-s3"
1919

2020
# Wraps Amazon S3 bucket actions.

0 commit comments

Comments
 (0)