< Back

Use-CfnIfCondition

Sat Jan 11, 2020 8:00 am

NAME Use-CfnIfCondition



SYNOPSIS

Returns one value if the specified condition evaluates to true and another value if the specified condition

evaluates to false.





SYNTAX

Use-CfnIfCondition [-ConditionName] <Object> [-IfTrue] <Object> [-IfFalse] <Object> [<CommonParameters>]





DESCRIPTION

Currently, AWS CloudFormation supports the Fn::If intrinsic function in the metadata attribute, update policy

attribute, and property values in the Resources section and Outputs sections of a template. You can use the

AWS::NoValue pseudo parameter as a return value to remove the corresponding property.





PARAMETERS

-ConditionName <Object>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-IfTrue <Object>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-IfFalse <Object>



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS

http://docs.aws.amazon.com/AWSCloudForm ... l#d0e10382

3