Skip to content

Commit

Permalink
feature(s3-connector): minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-vandaele committed Dec 11, 2024
1 parent cfe069d commit 9fb8448
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name" : "AWS S3 Outbound Connector",
"id" : "io.camunda.connectors.aws.s3.v1",
"description" : "Execute S3 requests",
"documentationRef" : "https://docs.camunda.io/docs/",
"documentationRef" : "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/aws-s3/",
"version" : 1,
"category" : {
"id" : "connectors",
Expand Down Expand Up @@ -216,6 +216,9 @@
"id" : "uploadActionKey",
"label" : "AWS key",
"optional" : true,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "uploadObject",
"binding" : {
Expand Down Expand Up @@ -291,9 +294,6 @@
"label" : "Create document",
"optional" : false,
"value" : true,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "downloadObject",
"binding" : {
Expand All @@ -305,7 +305,7 @@
"equals" : "downloadObject",
"type" : "simple"
},
"tooltip" : "....",
"tooltip" : "If set to true, a document reference will be created. If set to false, the content will be extracted and provided inside the response.",
"type" : "Boolean"
}, {
"id" : "resultVariable",
Expand Down Expand Up @@ -356,7 +356,6 @@
"label" : "Retry backoff",
"description" : "ISO-8601 duration to wait between retries",
"value" : "PT0S",
"feel" : "optional",
"group" : "retries",
"binding" : {
"key" : "retryBackoff",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name" : "Hybrid AWS S3 Outbound Connector",
"id" : "io.camunda.connectors.aws.s3.v1-hybrid",
"description" : "Execute S3 requests",
"documentationRef" : "https://docs.camunda.io/docs/",
"documentationRef" : "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/aws-s3/",
"version" : 1,
"category" : {
"id" : "connectors",
Expand Down Expand Up @@ -221,6 +221,9 @@
"id" : "uploadActionKey",
"label" : "AWS key",
"optional" : true,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "uploadObject",
"binding" : {
Expand Down Expand Up @@ -296,9 +299,6 @@
"label" : "Create document",
"optional" : false,
"value" : true,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "downloadObject",
"binding" : {
Expand All @@ -310,7 +310,7 @@
"equals" : "downloadObject",
"type" : "simple"
},
"tooltip" : "....",
"tooltip" : "If set to true, a document reference will be created. If set to false, the content will be extracted and provided inside the response.",
"type" : "Boolean"
}, {
"id" : "resultVariable",
Expand Down Expand Up @@ -361,7 +361,6 @@
"label" : "Retry backoff",
"description" : "ISO-8601 duration to wait between retries",
"value" : "PT0S",
"feel" : "optional",
"group" : "retries",
"binding" : {
"key" : "retryBackoff",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
@ElementTemplate.PropertyGroup(id = "uploadObject", label = "Upload an object"),
@ElementTemplate.PropertyGroup(id = "downloadObject", label = "Download an object"),
},
documentationRef = "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/aws-s3/",
documentationRef =
"https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/aws-s3/",
icon = "icon.svg")
public class S3ConnectorFunction implements OutboundConnectorFunction {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public S3Executor(S3Client s3Client, Function<DocumentCreationRequest, Document>
}

public static S3Executor create(
S3Request s3Request, Function<DocumentCreationRequest, Document> createDocument) {
S3Request s3Request, Function<DocumentCreationRequest, Document> createDocument) {
return new S3Executor(
S3Client.builder()
.credentialsProvider(CredentialsProviderSupportV2.credentialsProvider(s3Request))
Expand Down

0 comments on commit 9fb8448

Please sign in to comment.