// IsAmiExist returns true if ami exists with the given ami filters.
// nolint:interfacer
IsAmiExist returns true if ami exists with the given ami filters.
nolint:interfacer
// IsAmiExist returns true if ami exists with the given ami filters . // nolint : interfacer
func IsAmiExist(svc ec2iface.EC2API, filters []*ec2.Filter) (bool, error) {
	input := &ec2.DescribeImagesInput{
		Filters: filters,
	}
	result, err := svc.DescribeImages(input)
	if ok, err := IsError(err); ok {
		return false, err
	}
	images := result.Images
	if len(images) == 0 {
		return false, nil
	}
	return true, nil
}
func IsAmiExist ( svc ec2iface . EC2API , filters [ ] * ec2 . Filter ) ( bool , error ) { input := & ec2 . DescribeImagesInput { Filters : filters , } result , err := svc . DescribeImages ( input ) if ok , err := IsError ( err ) ; ok { return false , err } images := result . Images if len ( images ) == 0 { return false , nil } return true , nil }
IsAmiExist returns true if ami exists with the given ami filters.
IsAmiExist returns true if ami exists with the given ami filters .