# WriteProvisionedThroughputSettingsProperty

Specifies an auto scaling policy for write capacity.

This policy will be applied to all replicas. This setting must be specified if `BillingMode` is set to `PROVISIONED` .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
const writeProvisionedThroughputSettingsProperty: dynamodb.CfnGlobalTable.WriteProvisionedThroughputSettingsProperty = {
  writeCapacityAutoScalingSettings: {
    maxCapacity: 123,
    minCapacity: 123,
    targetTrackingScalingPolicyConfiguration: {
      targetValue: 123,

      // the properties below are optional
      disableScaleIn: false,
      scaleInCooldown: 123,
      scaleOutCooldown: 123,
    },

    // the properties below are optional
    seedCapacity: 123,
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dynamodb as dynamodb

write_provisioned_throughput_settings_property = dynamodb.CfnGlobalTable.WriteProvisionedThroughputSettingsProperty(
    write_capacity_auto_scaling_settings=dynamodb.CfnGlobalTable.CapacityAutoScalingSettingsProperty(
        max_capacity=123,
        min_capacity=123,
        target_tracking_scaling_policy_configuration=dynamodb.CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty(
            target_value=123,

            # the properties below are optional
            disable_scale_in=False,
            scale_in_cooldown=123,
            scale_out_cooldown=123
        ),

        # the properties below are optional
        seed_capacity=123
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dynamodb.*;

WriteProvisionedThroughputSettingsProperty writeProvisionedThroughputSettingsProperty = WriteProvisionedThroughputSettingsProperty.builder()
        .writeCapacityAutoScalingSettings(CapacityAutoScalingSettingsProperty.builder()
                .maxCapacity(123)
                .minCapacity(123)
                .targetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfigurationProperty.builder()
                        .targetValue(123)

                        // the properties below are optional
                        .disableScaleIn(false)
                        .scaleInCooldown(123)
                        .scaleOutCooldown(123)
                        .build())

                // the properties below are optional
                .seedCapacity(123)
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DynamoDB;

var writeProvisionedThroughputSettingsProperty = new WriteProvisionedThroughputSettingsProperty {
    WriteCapacityAutoScalingSettings = new CapacityAutoScalingSettingsProperty {
        MaxCapacity = 123,
        MinCapacity = 123,
        TargetTrackingScalingPolicyConfiguration = new TargetTrackingScalingPolicyConfigurationProperty {
            TargetValue = 123,

            // the properties below are optional
            DisableScaleIn = false,
            ScaleInCooldown = 123,
            ScaleOutCooldown = 123
        },

        // the properties below are optional
        SeedCapacity = 123
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

writeProvisionedThroughputSettingsProperty := &WriteProvisionedThroughputSettingsProperty{
	WriteCapacityAutoScalingSettings: &CapacityAutoScalingSettingsProperty{
		MaxCapacity: jsii.Number(123),
		MinCapacity: jsii.Number(123),
		TargetTrackingScalingPolicyConfiguration: &TargetTrackingScalingPolicyConfigurationProperty{
			TargetValue: jsii.Number(123),

			// the properties below are optional
			DisableScaleIn: jsii.Boolean(false),
			ScaleInCooldown: jsii.Number(123),
			ScaleOutCooldown: jsii.Number(123),
		},

		// the properties below are optional
		SeedCapacity: jsii.Number(123),
	},
}
```

## Properties

- `writeCapacityAutoScalingSettings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGlobalTable.CapacityAutoScalingSettingsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.CfnGlobalTable.CapacityAutoScalingSettingsProperty.html) — Specifies auto scaling settings for the replica table or global secondary index.
