Skip to content

Commit

Permalink
Remove validation requiring IDC instance arn. (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
jregistr authored Jun 20, 2024
1 parent c70bb90 commit cf3e7f0
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import software.amazon.awssdk.services.qbusiness.model.TagResourceRequest;
import software.amazon.awssdk.services.qbusiness.model.UntagResourceRequest;
import software.amazon.awssdk.services.qbusiness.model.UpdateApplicationRequest;
import software.amazon.cloudformation.exceptions.CfnInvalidRequestException;
import software.amazon.cloudformation.proxy.ResourceHandlerRequest;

/**
Expand All @@ -37,10 +36,6 @@ public class Translator {
* @return awsRequest the aws service request to create a resource
*/
static CreateApplicationRequest translateToCreateRequest(final String idempotentToken, final ResourceModel model) {
// https://w.amazon.com/bin/view/AWS21/Design/Uluru/Onboarding_Guide/ModelingGuidelines#HRequiredWriteOnlyProperties
if (model.getIdentityCenterInstanceArn() == null) {
throw new CfnInvalidRequestException("IdentityCenterInstanceArn is required.");
}
return CreateApplicationRequest.builder()
.clientToken(idempotentToken)
.displayName(model.getDisplayName())
Expand Down

0 comments on commit cf3e7f0

Please sign in to comment.