

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

# ScalingConfig
<a name="sam-property-capacityprovider-scalingconfig"></a>

Konfiguriert, wie der Kapazitätsanbieter EC2 Instances je nach Bedarf skaliert, einschließlich maximaler Instanzlimits und Skalierungsrichtlinien.

## Syntax
<a name="sam-property-capacityprovider-scalingconfig-syntax"></a>

Verwenden Sie die folgende Syntax, um diese Entität in Ihrer Vorlage AWS Serverless Application Model (AWS SAM) zu deklarieren.

### YAML
<a name="sam-property-capacityprovider-scalingconfig-syntax.yaml"></a>

```
[MaxVCpuCount](#sam-capacityprovider-scalingconfig-maxvcpucount): {{Integer}}
[AverageCPUUtilization](#sam-capacityprovider-scalingconfig-averagecpuutilization): {{Double}}
```

## Eigenschaften
<a name="sam-property-capacityprovider-scalingconfig-properties"></a>

 `MaxVCpuCount`   <a name="sam-capacityprovider-scalingconfig-maxvcpucount"></a>
Die maximale Anzahl von vCPUs , die der Kapazitätsanbieter für alle Recheninstanzen bereitstellen kann.  
*Typ*: Ganzzahl  
*Required*: No  
*CloudFormation Kompatibilität*: Diese Eigenschaft wird direkt an die `[MaxVCpuCount](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-capacityprovider-capacityproviderscalingconfig.html#cfn-lambda-capacityprovider-capacityproviderscalingconfig-maxvcpucount)` Eigenschaft `[CapacityProviderScalingConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-capacityprovider.html#cfn-lambda-capacityprovider-capacityproviderscalingconfig)` einer `AWS::Lambda::CapacityProvider` Ressource übergeben. 

 `AverageCPUUtilization`   <a name="sam-capacityprovider-scalingconfig-averagecpuutilization"></a>
Der angestrebte durchschnittliche Prozentsatz der CPU-Auslastung (0-100) für Skalierungsentscheidungen. Wenn die durchschnittliche CPU-Auslastung diesen Schwellenwert überschreitet, skaliert der Kapazitätsanbieter EC2 Amazon-Instances. Falls angegeben, AWS SAM Konstrukte `[CapacityProviderScalingConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-capacityprovider.html#cfn-lambda-capacityprovider-capacityproviderscalingconfig)` einer `AWS::Lambda::CapacityProvider` Ressource mit den Werten „auf“ `'Manual'` und `[ScalingMode](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-capacityprovider-capacityproviderscalingconfig.html#cfn-lambda-capacityprovider-capacityproviderscalingconfig-scalingmode)` „`[ScalingPolicies](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-capacityprovider-capacityproviderscalingconfig.html#cfn-lambda-capacityprovider-capacityproviderscalingconfig-scalingpolicies)`gesetzt auf`[{PredefinedMetricType: 'LambdaCapacityProviderAverageCPUUtilization', TargetValue: <this value>}]`“.   
*Type*: Double  
*Required*: No  
*CloudFormation Kompatibilität*: Diese Eigenschaft ist einzigartig für AWS SAM und hat kein CloudFormation Äquivalent. 

## Beispiele
<a name="sam-property-capacityprovider-scalingconfig-examples"></a>

### Skalierungskonfiguration
<a name="sam-property-capacityprovider-scalingconfig-examples-basic"></a>

Das folgende Beispiel zeigt eine Skalierungskonfiguration mit maximaler VCpu Anzahl und durchschnittlicher CPU-Auslastung.

```
ScalingConfig:
  MaxVCpuCount: 10
  AverageCPUUtilization: 70.0
```