aws cfn can map be conditioned code example
Example: cloudformation conditional property
Properties:
Property:
!If
- YourCondition
- YouProperties # It can be object or array
- !Ref "AWS::NoValue"
Properties:
Property:
!If
- YourCondition
- YouProperties # It can be object or array
- !Ref "AWS::NoValue"