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

GYRO-378: ELBV2 Authenticate Cognito Action, primary key will show null if referenced User Pool Client and User Pool Domain not created. #139

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
5 changes: 4 additions & 1 deletion src/main/java/gyro/aws/elbv2/AuthenticateCognitoAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ public void setUserPoolDomain(UserPoolDomainResource userPoolDomain) {
}

public String primaryKey() {
return String.format("%s/%s/%s", getUserPoolArn(), getUserPoolClient().getId(), getUserPoolDomain().getDomain());
return String.format("%s %s %s",
getUserPoolArn() != null ? getUserPoolArn() : "",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to leave an extra space in the output.

Create authenticate-cognito-action  domainexample

getUserPoolClient().getId() != null ? getUserPoolClient().getId() : getUserPoolClient().getName(),
getUserPoolDomain().getDomain());
}

@Override
Expand Down