func GetNestedCloudFormationResources(stackname *string, svc *cloudformation.Client) []types.StackResource {
	resources := GetResourcesByStackName(stackname, svc)
	result := make([]types.StackResource, 0, len(resources))
	for _, resource := range resources {
		result = append(result, resource)
		if aws.ToString(resource.ResourceType) == "AWS::CloudFormation::Stack" {
			for _, subresource := range GetNestedCloudFormationResources(resource.PhysicalResourceId, svc) {
				result = append(result, subresource)
			}
		}
	}
	return result
}
// GetNestedCloudFormationResources retrieves a slice of the Stack Resources that
// are in the provided stack or in one of its children
GetNestedCloudFormationResources retrieves a slice of the Stack Resources that
are in the provided stack or in one of its children
// GetNestedCloudFormationResources retrieves a slice of the Stack Resources that // are in the provided stack or in one of its children
func GetNestedCloudFormationResources(stackname *string, svc *cloudformation.Client) []types.StackResource {
	resources := GetResourcesByStackName(stackname, svc)
	result := make([]types.StackResource, 0, len(resources))
	for _, resource := range resources {
		result = append(result, resource)
		if aws.ToString(resource.ResourceType) == "AWS::CloudFormation::Stack" {
			for _, subresource := range GetNestedCloudFormationResources(resource.PhysicalResourceId, svc) {
				result = append(result, subresource)
			}
		}
	}
	return result
}
func GetNestedCloudFormationResources ( stackname * string , svc * cloudformation . Client ) [ ] types . StackResource { resources := GetResourcesByStackName ( stackname , svc ) result := make ( [ ] types . StackResource , 0 , len ( resources ) ) for _ , resource := range resources { result = append ( result , resource ) if aws . ToString ( resource . ResourceType ) == " " { for _ , subresource := range GetNestedCloudFormationResources ( resource . PhysicalResourceId , svc ) { result = append ( result , subresource ) } } } return result }
GetNestedCloudFormationResources retrieves a slice of the Stack Resources that
are in the provided stack or in one of its children
GetNestedCloudFormationResources retrieves a slice of the Stack Resources that are in the provided stack or in one of its children