Skip to content

Commit 8d9a267

Browse files
Add super.toString() to Cognito events (aws#441)
1 parent fbc973c commit 8d9a267

10 files changed

+23
-0
lines changed

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoUserPoolCreateAuthChallengeEvent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@Data
2727
@EqualsAndHashCode(callSuper = true)
2828
@NoArgsConstructor
29+
@ToString(callSuper = true)
2930
public class CognitoUserPoolCreateAuthChallengeEvent extends CognitoUserPoolEvent {
3031

3132
/**
@@ -56,6 +57,7 @@ public CognitoUserPoolCreateAuthChallengeEvent(
5657
@Data
5758
@EqualsAndHashCode(callSuper = true)
5859
@NoArgsConstructor
60+
@ToString(callSuper = true)
5961
public static class Request extends CognitoUserPoolEvent.Request {
6062
/**
6163
* One or more key-value pairs that you can provide as custom input to the Lambda function that you specify for the create auth challenge trigger.

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoUserPoolCustomMessageEvent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@Data
2727
@EqualsAndHashCode(callSuper = true)
2828
@NoArgsConstructor
29+
@ToString(callSuper = true)
2930
public class CognitoUserPoolCustomMessageEvent extends CognitoUserPoolEvent {
3031
/**
3132
* The request from the Amazon Cognito service.
@@ -55,6 +56,7 @@ public CognitoUserPoolCustomMessageEvent(
5556
@Data
5657
@EqualsAndHashCode(callSuper = true)
5758
@NoArgsConstructor
59+
@ToString(callSuper = true)
5860
public static class Request extends CognitoUserPoolEvent.Request {
5961
/**
6062
* One or more key-value pairs that you can provide as custom input to the Lambda function that you specify for the custom message trigger.

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoUserPoolDefineAuthChallengeEvent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@Data
2727
@EqualsAndHashCode(callSuper = true)
2828
@NoArgsConstructor
29+
@ToString(callSuper = true)
2930
public class CognitoUserPoolDefineAuthChallengeEvent extends CognitoUserPoolEvent {
3031

3132
/**
@@ -56,6 +57,7 @@ public CognitoUserPoolDefineAuthChallengeEvent(
5657
@Data
5758
@EqualsAndHashCode(callSuper = true)
5859
@NoArgsConstructor
60+
@ToString(callSuper = true)
5961
public static class Request extends CognitoUserPoolEvent.Request {
6062
/**
6163
* One or more key-value pairs that you can provide as custom input to the Lambda function that you specify for the define auth challenge trigger.

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoUserPoolMigrateUserEvent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@Data
2727
@EqualsAndHashCode(callSuper = true)
2828
@NoArgsConstructor
29+
@ToString(callSuper = true)
2930
public class CognitoUserPoolMigrateUserEvent extends CognitoUserPoolEvent {
3031
/**
3132
* The request from the Amazon Cognito service.
@@ -55,6 +56,7 @@ public CognitoUserPoolMigrateUserEvent(
5556
@Data
5657
@EqualsAndHashCode(callSuper = true)
5758
@NoArgsConstructor
59+
@ToString(callSuper = true)
5860
public static class Request extends CognitoUserPoolEvent.Request {
5961
/**
6062
* The username entered by the user.

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoUserPoolPostAuthenticationEvent.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import lombok.Data;
1717
import lombok.EqualsAndHashCode;
1818
import lombok.NoArgsConstructor;
19+
import lombok.ToString;
1920

2021
import java.util.Map;
2122

@@ -29,6 +30,7 @@
2930
@Data
3031
@EqualsAndHashCode(callSuper = true)
3132
@NoArgsConstructor
33+
@ToString(callSuper = true)
3234
public class CognitoUserPoolPostAuthenticationEvent extends CognitoUserPoolEvent {
3335

3436
/**
@@ -52,6 +54,7 @@ public CognitoUserPoolPostAuthenticationEvent(
5254
@Data
5355
@EqualsAndHashCode(callSuper = true)
5456
@NoArgsConstructor
57+
@ToString(callSuper = true)
5558
public static class Request extends CognitoUserPoolEvent.Request {
5659
/**
5760
* One or more key-value pairs that you can provide as custom input to the Lambda function that you specify for the post authentication trigger.

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoUserPoolPostConfirmationEvent.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import lombok.Data;
1717
import lombok.EqualsAndHashCode;
1818
import lombok.NoArgsConstructor;
19+
import lombok.ToString;
1920

2021
import java.util.Map;
2122

@@ -29,6 +30,7 @@
2930
@EqualsAndHashCode(callSuper = true)
3031
@Data
3132
@NoArgsConstructor
33+
@ToString(callSuper = true)
3234
public class CognitoUserPoolPostConfirmationEvent extends CognitoUserPoolEvent {
3335

3436
/**
@@ -52,6 +54,7 @@ public CognitoUserPoolPostConfirmationEvent(
5254
@Data
5355
@EqualsAndHashCode(callSuper = true)
5456
@NoArgsConstructor
57+
@ToString(callSuper = true)
5558
public static class Request extends CognitoUserPoolEvent.Request {
5659
/**
5760
* One or more key-value pairs that you can provide as custom input to the Lambda function that you specify for the post confirmation trigger.

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoUserPoolPreAuthenticationEvent.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import lombok.Data;
1717
import lombok.EqualsAndHashCode;
1818
import lombok.NoArgsConstructor;
19+
import lombok.ToString;
1920

2021
import java.util.Map;
2122

@@ -29,6 +30,7 @@
2930
@Data
3031
@EqualsAndHashCode(callSuper = true)
3132
@NoArgsConstructor
33+
@ToString(callSuper = true)
3234
public class CognitoUserPoolPreAuthenticationEvent extends CognitoUserPoolEvent {
3335

3436
/**
@@ -52,6 +54,7 @@ public CognitoUserPoolPreAuthenticationEvent(
5254
@Data
5355
@EqualsAndHashCode(callSuper = true)
5456
@NoArgsConstructor
57+
@ToString(callSuper = true)
5558
public static class Request extends CognitoUserPoolEvent.Request {
5659
/**
5760
* One or more name-value pairs containing the validation data in the request to register a user.

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoUserPoolPreSignUpEvent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@Data
2727
@EqualsAndHashCode(callSuper = true)
2828
@NoArgsConstructor
29+
@ToString(callSuper = true)
2930
public class CognitoUserPoolPreSignUpEvent extends CognitoUserPoolEvent {
3031

3132
/**
@@ -56,6 +57,7 @@ public CognitoUserPoolPreSignUpEvent(
5657
@Data
5758
@EqualsAndHashCode(callSuper = true)
5859
@NoArgsConstructor
60+
@ToString(callSuper = true)
5961
public static class Request extends CognitoUserPoolEvent.Request {
6062
/**
6163
* One or more name-value pairs containing the validation data in the request to register a user.

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoUserPoolPreTokenGenerationEvent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@Data
2727
@EqualsAndHashCode(callSuper = true)
2828
@NoArgsConstructor
29+
@ToString(callSuper = true)
2930
public class CognitoUserPoolPreTokenGenerationEvent extends CognitoUserPoolEvent {
3031
/**
3132
* The request from the Amazon Cognito service.
@@ -55,6 +56,7 @@ public CognitoUserPoolPreTokenGenerationEvent(
5556
@Data
5657
@EqualsAndHashCode(callSuper = true)
5758
@NoArgsConstructor
59+
@ToString(callSuper = true)
5860
public static class Request extends CognitoUserPoolEvent.Request {
5961
/**
6062
* One or more key-value pairs that you can provide as custom input to the Lambda function that you specify for the pre token generation trigger.

aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/CognitoUserPoolVerifyAuthChallengeResponseEvent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@Data
2727
@EqualsAndHashCode(callSuper = true)
2828
@NoArgsConstructor
29+
@ToString(callSuper = true)
2930
public class CognitoUserPoolVerifyAuthChallengeResponseEvent extends CognitoUserPoolEvent {
3031
/**
3132
* The request from the Amazon Cognito service.
@@ -55,6 +56,7 @@ public CognitoUserPoolVerifyAuthChallengeResponseEvent(
5556
@Data
5657
@EqualsAndHashCode(callSuper = true)
5758
@NoArgsConstructor
59+
@ToString(callSuper = true)
5860
public static class Request extends CognitoUserPoolEvent.Request {
5961
/**
6062
* One or more key-value pairs that you can provide as custom input to the Lambda function that you specify for the verify auth challenge trigger.

0 commit comments

Comments
 (0)