Skip to content

Commit a3a3f3c

Browse files
authored
Merge branch 'main' into dependabot/gradle/org.testcontainers-testcontainers-2.0.3
2 parents 1862055 + 0c80b57 commit a3a3f3c

File tree

11 files changed

+60
-38
lines changed

11 files changed

+60
-38
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ configurations {
150150
}
151151

152152
dependencies {
153-
agent "org.aspectj:aspectjweaver:1.9.25"
153+
agent "org.aspectj:aspectjweaver:1.9.25.1"
154154
}
155155

156156
test {

src/main/java/io/kestra/plugin/aws/ConnectionUtils.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ public static StsClient stsClient(final AbstractConnection.AwsClientConfig awsCl
8181
StsClientBuilder builder = StsClient.builder();
8282

8383
final String stsEndpointOverride = awsClientConfig.stsEndpointOverride();
84-
if (stsEndpointOverride != null) {
84+
if(StringUtils.isNotBlank(stsEndpointOverride)) {
8585
builder.applyMutation(stsClientBuilder ->
86-
stsClientBuilder.endpointOverride(URI.create(stsEndpointOverride)));
86+
stsClientBuilder.endpointOverride(URI.create(stsEndpointOverride.trim())));
8787
}
8888

8989
final String regionString = awsClientConfig.region();
@@ -152,8 +152,9 @@ public static <C extends AwsClient, B extends AwsClientBuilder<B, C>> B configur
152152
if (clientConfig.region() != null) {
153153
builder.region(Region.of(clientConfig.region()));
154154
}
155-
if (clientConfig.endpointOverride() != null) {
156-
builder.endpointOverride(URI.create(clientConfig.endpointOverride()));
155+
156+
if (StringUtils.isNotBlank(clientConfig.endpointOverride())) {
157+
builder.endpointOverride(URI.create(clientConfig.endpointOverride().trim()));
157158
}
158159
return builder;
159160
}

src/main/java/io/kestra/plugin/aws/cloudwatch/Trigger.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@
5959
)
6060
public class Trigger extends AbstractTrigger implements PollingTriggerInterface, TriggerOutput<Query.Output> {
6161
@Schema(
62-
title = "Access Key Id in order to connect to AWS.",
63-
description = "If no credentials are defined, we will use the [default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html) to fetch credentials."
62+
title = "AWS access key ID.",
63+
description = "Optional static credential. If omitted, the [default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html) is used."
6464
)
6565
protected Property<String> accessKeyId;
6666

6767
@Schema(
68-
title = "Secret Key Id in order to connect to AWS.",
69-
description = "If no credentials are defined, we will use the [default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html) to fetch credentials."
68+
title = "AWS secret access key.",
69+
description = "Pairs with `accessKeyId` for static credentials. If omitted, the [default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html) is used."
7070
)
7171
protected Property<String> secretKeyId;
7272

7373
@Schema(
74-
title = "AWS session token, retrieved from an AWS token service, used for authenticating that this user has received temporary permissions to access a given resource.",
75-
description = "If no credentials are defined, we will use the [default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html) to fetch credentials."
74+
title = "AWS session token for temporary credentials.",
75+
description = "Used with STS- or SSO-issued temporary credentials. If omitted, the [default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html) is used."
7676
)
7777
protected Property<String> sessionToken;
7878

src/main/java/io/kestra/plugin/aws/emr/CreateClusterAndSubmitSteps.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,28 +66,28 @@
6666
)
6767
public class CreateClusterAndSubmitSteps extends AbstractEmrTask implements RunnableTask<CreateClusterAndSubmitSteps.Output> {
6868

69-
@Schema(title = "Cluster Name.")
69+
@Schema(title = "Cluster Name")
7070
@NotNull
7171
private Property<String> clusterName;
7272

73-
@Schema(title = "Release Label.", description = "It specifies the EMR release version label. Pattern is 'emr-x.x.x'.")
73+
@Schema(title = "Release Label", description = "It specifies the EMR release version label. Pattern is 'emr-x.x.x'.")
7474
@NotNull
7575
@Builder.Default
7676
private Property<String> releaseLabel = Property.ofValue("emr-5.20.0");
7777

7878
@Schema(
7979
title = "Steps",
80-
description = "List of steps to run."
80+
description = "List of steps to run"
8181
)
8282
private List<StepConfig> steps;
8383

84-
@Schema(title = "Applications.", description = "List of applications name: Ex: \"Hive\", \"Spark\", \"Ganglia\"")
84+
@Schema(title = "Applications", description = "List of applications name: Ex: \"Hive\", \"Spark\", \"Ganglia\"")
8585
private Property<List<String>> applications;
8686

87-
@Schema(title = "Log URI.", description = "The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.")
87+
@Schema(title = "Log URI", description = "The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.")
8888
private Property<String> logUri;
8989

90-
@Schema(title = "Job flow Role.", description = """
90+
@Schema(title = "Job flow Role", description = """
9191
Also called instance profile and Amazon EC2 role. An IAM role for an Amazon EMR cluster.
9292
The Amazon EC2 instances of the cluster assume this role. The default role is EMR_EC2_DefaultRole.
9393
In order to use the default role, you must have already created it using the CLI or console.

src/main/java/io/kestra/plugin/aws/emr/CreateServerlessApplicationAndStartJob.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,34 +46,34 @@
4646
public class CreateServerlessApplicationAndStartJob extends AbstractEmrServerlessTask implements RunnableTask<CreateServerlessApplicationAndStartJob.Output> {
4747

4848
@Schema(
49-
title = "The EMR release label to use for the application.",
49+
title = "The EMR release label to use for the application",
5050
description = "For example, `emr-6.3.0` or `emr-7.0.0`."
5151
)
5252
@NotNull
5353
private Property<String> releaseLabel;
5454

5555
@Schema(
56-
title = "The type of application to create.",
57-
description = "Valid values are for instance `SPARK` and `HIVE`."
56+
title = "The type of application to create",
57+
description = "For example, valid values are `SPARK` and `HIVE`."
5858
)
5959
@NotNull
6060
private Property<String> applicationType;
6161

6262
@Schema(
63-
title = "The execution role ARN for the application.",
63+
title = "The execution role ARN for the application",
6464
description = "This role will be assumed by EMR Serverless to access AWS resources on your behalf."
6565
)
6666
@NotNull
6767
private Property<String> executionRoleArn;
6868

6969
@Schema(
70-
title = "The name of the job to start."
70+
title = "The name of the job to start"
7171
)
7272
@NotNull
7373
private Property<String> jobName;
7474

7575
@Schema(
76-
title = "The entry point for the job.",
76+
title = "The entry point for the job",
7777
description = "For `SPARK` applications, this is typically the S3 path to your main application file (e.g., a Python or JAR file). For `HIVE` applications, this is the Hive query to execute."
7878
)
7979
@NotNull

src/main/java/io/kestra/plugin/aws/emr/DeleteCluster.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
}
5252
)
5353
public class DeleteCluster extends AbstractEmrTask implements RunnableTask<VoidOutput> {
54-
@Schema(title = "Cluster IDs.", description = "List of cluster IDs to be terminated.")
54+
@Schema(title = "Cluster IDs", description = "List of cluster IDs to be terminated.")
5555
@NotNull
5656
private Property<List<String>> clusterIds;
5757

src/main/java/io/kestra/plugin/aws/emr/DeleteServerlessApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
public class DeleteServerlessApplication extends AbstractEmrServerlessTask implements RunnableTask<VoidOutput> {
5454

5555
@Schema(
56-
title = "Application IDs.",
56+
title = "Application IDs",
5757
description = "List of EMR Serverless application IDs to delete."
5858
)
5959
@NotNull

src/main/java/io/kestra/plugin/aws/emr/StartServerlessJobRun.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,25 @@
5151
public class StartServerlessJobRun extends AbstractEmrServerlessTask implements RunnableTask<StartServerlessJobRun.Output> {
5252

5353
@Schema(
54-
title = "The EMR Serverless application ID to run the job on."
54+
title = "The EMR Serverless application ID to run the job on"
5555
)
5656
@NotNull
5757
private Property<String> applicationId;
5858

5959
@Schema(
60-
title = "The execution role ARN for the job."
60+
title = "The execution role ARN for the job"
6161
)
6262
@NotNull
6363
private Property<String> executionRoleArn;
6464

6565
@Schema(
66-
title = "The name of the job."
66+
title = "The name of the job"
6767
)
6868
@NotNull
6969
private Property<String> jobName;
7070

7171
@Schema(
72-
title = "The entry point for the job."
72+
title = "The entry point for the job"
7373
)
7474
@NotNull
7575
private Property<String> entryPoint;

src/main/java/io/kestra/plugin/aws/emr/SubmitSteps.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
}
5757
)
5858
public class SubmitSteps extends AbstractEmrTask implements RunnableTask<VoidOutput> {
59-
@Schema(title = "Cluster ID.")
59+
@Schema(title = "Cluster ID")
6060
@NotNull
6161
private Property<String> clusterId;
6262

@@ -68,7 +68,7 @@ public class SubmitSteps extends AbstractEmrTask implements RunnableTask<VoidOut
6868
private List<StepConfig> steps;
6969

7070
@Schema(
71-
title = "Execution role ARN.",
71+
title = "Execution role ARN",
7272
description = """
7373
The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The runtime role can be a cross-account IAM role.
7474
The runtime role ARN is a combination of account ID, role name, and role type using the following format: arn:partition:service:region:account:resource.

src/main/java/io/kestra/plugin/aws/kinesis/RealtimeTrigger.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,20 @@
6060
)
6161
public class RealtimeTrigger extends AbstractTrigger implements RealtimeTriggerInterface, TriggerOutput<Consume.ConsumedRecord> {
6262
@Schema(
63-
title = "Access Key Id in order to connect to AWS.",
64-
description = "If no credentials are defined, we will use the [default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html) to fetch credentials."
63+
title = "AWS access key ID.",
64+
description = "Optional static credential. If omitted, the [default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html) is used."
6565
)
6666
private Property<String> accessKeyId;
6767

6868
@Schema(
69-
title = "Secret Key Id in order to connect to AWS.",
70-
description = "If no credentials are defined, we will use the [default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html) to fetch credentials."
69+
title = "AWS secret access key.",
70+
description = "Pairs with `accessKeyId` for static credentials. If omitted, the [default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html) is used."
7171
)
7272
private Property<String> secretKeyId;
7373

7474
@Schema(
75-
title = "AWS session token, retrieved from an AWS token service, used for authenticating that this user has received temporary permissions to access a given resource.",
76-
description = "If no credentials are defined, we will use the [default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html) to fetch credentials."
75+
title = "AWS session token for temporary credentials.",
76+
description = "Used with STS- or SSO-issued temporary credentials. If omitted, the [default credentials provider chain](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html) is used."
7777
)
7878
private Property<String> sessionToken;
7979

@@ -404,4 +404,3 @@ private void stop(boolean wait) {
404404
}
405405
}
406406
}
407-

0 commit comments

Comments
 (0)