< Back

Use-CfnSelectFunction

Sat Jan 11, 2020 8:03 am

NAME Use-CfnSelectFunction



SYNOPSIS

The intrinsic function Fn::Select returns a single object from a list of objects by index.





SYNTAX

Use-CfnSelectFunction [-Index] <Object> [-List] <Array> [<CommonParameters>]





DESCRIPTION

Important

Fn::Select does not check for null values or if the index is out of bounds of the array. Both conditions will

result in a stack error, so you should be certain that the index you choose is valid, and that the list contains

non-null values.





PARAMETERS

-Index <Object>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-List <Array>



Required? true

Position? 2

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 ... elect.html