

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::QuickSight::Analysis SheetImageScalingConfiguration
<a name="aws-properties-quicksight-analysis-sheetimagescalingconfiguration"></a>

Determines how the image is scaled

## Syntax
<a name="aws-properties-quicksight-analysis-sheetimagescalingconfiguration-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-quicksight-analysis-sheetimagescalingconfiguration-syntax.json"></a>

```
{
  "[ScalingType](#cfn-quicksight-analysis-sheetimagescalingconfiguration-scalingtype)" : String
}
```

### YAML
<a name="aws-properties-quicksight-analysis-sheetimagescalingconfiguration-syntax.yaml"></a>

```
  [ScalingType](#cfn-quicksight-analysis-sheetimagescalingconfiguration-scalingtype): String
```

## Properties
<a name="aws-properties-quicksight-analysis-sheetimagescalingconfiguration-properties"></a>

`ScalingType`  <a name="cfn-quicksight-analysis-sheetimagescalingconfiguration-scalingtype"></a>
The scaling option to use when fitting the image inside the container.  
Valid values are defined as follows:  
+ `SCALE_TO_WIDTH`: The image takes up the entire width of the container. The image aspect ratio is preserved.
+ `SCALE_TO_HEIGHT`: The image takes up the entire height of the container. The image aspect ratio is preserved.
+ `SCALE_TO_CONTAINER`: The image takes up the entire width and height of the container. The image aspect ratio is not preserved.
+ `SCALE_NONE`: The image is displayed in its original size and is not scaled to the container.
*Required*: No  
*Type*: String  
*Allowed values*: `SCALE_TO_WIDTH | SCALE_TO_HEIGHT | SCALE_TO_CONTAINER | SCALE_NONE`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)