Skip to content

Commit

Permalink
chore(aws): force region as mandatory field in templates (#2265)
Browse files Browse the repository at this point in the history
  • Loading branch information
igpetrov committed Mar 28, 2024
1 parent 6a49934 commit 955e242
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
import io.camunda.connector.aws.model.AwsConfiguration;
import io.camunda.connector.generator.dsl.Property;
import io.camunda.connector.generator.java.annotation.TemplateProperty;
import io.camunda.connector.generator.java.annotation.TemplateProperty.PropertyConstraints;

public record AwsBaseConfiguration(
@TemplateProperty(
group = "configuration",
description = "Specify the AWS region",
optional = true)
constraints = @PropertyConstraints(notEmpty = true))
String region,
@TemplateProperty(
group = "configuration",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@
"id" : "configuration.region",
"label" : "Region",
"description" : "Specify the AWS region",
"optional" : true,
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "configuration",
"binding" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@
"id" : "configuration.region",
"label" : "Region",
"description" : "Specify the AWS region",
"optional" : true,
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "configuration",
"binding" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@
"id" : "configuration.region",
"label" : "Region",
"description" : "Specify the AWS region",
"optional" : true,
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "configuration",
"binding" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@
"id" : "configuration.region",
"label" : "Region",
"description" : "Specify the AWS region",
"optional" : true,
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "configuration",
"binding" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@
"id" : "configuration.region",
"label" : "Region",
"description" : "Specify the AWS region",
"optional" : true,
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "configuration",
"binding" : {
Expand Down

0 comments on commit 955e242

Please sign in to comment.