Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add not nul annotation #575

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main/java/io/kestra/plugin/aws/emr/CreateCluster.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,11 @@ public class CreateCluster extends AbstractEmrTask implements RunnableTask<Creat
@Builder.Default
private Property<String> serviceRole = Property.of("EMR_DefaultRole");

@NotNull
@Schema(title = "Master Instance Type.", description = "EC2 instance type for master instances.")
private Property<String> masterInstanceType;

@NotNull
@Schema(title = "Slave Instance Type.", description = "EC2 instance type for slave instances.")
private Property<String> slaveInstanceType;

Expand All @@ -124,6 +126,7 @@ public class CreateCluster extends AbstractEmrTask implements RunnableTask<Creat
private Property<Boolean> keepJobFlowAliveWhenNoSteps = Property.of(false);

@Schema(title = "Instance count.")
@NotNull
private Property<Integer> instanceCount;

@Schema(title = "EC2 Key name.", description = "The name of the Amazon EC2 key pair that can be used to connect to the master node using SSH as the user called \"hadoop\".")
Expand Down
Loading