(service-catalog): (CfnPortfolioPrincipalAssociation should support IAM_PATTERN) #24370
Labels
@aws-cdk/aws-servicecatalog
Related to AWS Service Catalog
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Using
throws
Property validation failure: [Value for property {/PrincipalType} does not match pattern {IAM}]
Expected Behavior
IAM is not the only supported pattern. Per
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/ServiceCatalog.html#associatePrincipalWithPortfolio-property
(used in the AWS Custom Resources Framework of the CDK) usage ofIAM_PATTERN
is supported. Writing a Custom Resource using it yields the expected results:Current Behavior
Throws Error:
Property validation failure: [Value for property {/PrincipalType} does not match pattern {IAM}]
Reproduction Steps
See code attachments above
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.66.1
Framework Version
No response
Node.js Version
17
OS
MacOs
Language
Typescript
Language Version
TS 4
Other information
No response
The text was updated successfully, but these errors were encountered: