# ConsumptionConfigurationProperty

Details about a consumption configuration.

- 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_licensemanager as licensemanager } from 'aws-cdk-lib';
const consumptionConfigurationProperty: licensemanager.CfnLicense.ConsumptionConfigurationProperty = {
  borrowConfiguration: {
    allowEarlyCheckIn: false,
    maxTimeToLiveInMinutes: 123,
  },
  provisionalConfiguration: {
    maxTimeToLiveInMinutes: 123,
  },
  renewType: 'renewType',
};
```

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_licensemanager as licensemanager

consumption_configuration_property = licensemanager.CfnLicense.ConsumptionConfigurationProperty(
    borrow_configuration=licensemanager.CfnLicense.BorrowConfigurationProperty(
        allow_early_check_in=False,
        max_time_to_live_in_minutes=123
    ),
    provisional_configuration=licensemanager.CfnLicense.ProvisionalConfigurationProperty(
        max_time_to_live_in_minutes=123
    ),
    renew_type="renewType"
)
```

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.licensemanager.*;

ConsumptionConfigurationProperty consumptionConfigurationProperty = ConsumptionConfigurationProperty.builder()
        .borrowConfiguration(BorrowConfigurationProperty.builder()
                .allowEarlyCheckIn(false)
                .maxTimeToLiveInMinutes(123)
                .build())
        .provisionalConfiguration(ProvisionalConfigurationProperty.builder()
                .maxTimeToLiveInMinutes(123)
                .build())
        .renewType("renewType")
        .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.LicenseManager;

var consumptionConfigurationProperty = new ConsumptionConfigurationProperty {
    BorrowConfiguration = new BorrowConfigurationProperty {
        AllowEarlyCheckIn = false,
        MaxTimeToLiveInMinutes = 123
    },
    ProvisionalConfiguration = new ProvisionalConfigurationProperty {
        MaxTimeToLiveInMinutes = 123
    },
    RenewType = "renewType"
};
```

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"

consumptionConfigurationProperty := &ConsumptionConfigurationProperty{
	BorrowConfiguration: &BorrowConfigurationProperty{
		AllowEarlyCheckIn: jsii.Boolean(false),
		MaxTimeToLiveInMinutes: jsii.Number(123),
	},
	ProvisionalConfiguration: &ProvisionalConfigurationProperty{
		MaxTimeToLiveInMinutes: jsii.Number(123),
	},
	RenewType: jsii.String("renewType"),
}
```

## Properties

- `borrowConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLicense.BorrowConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_licensemanager.CfnLicense.BorrowConfigurationProperty.html) — Details about a borrow configuration.

- `provisionalConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLicense.ProvisionalConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_licensemanager.CfnLicense.ProvisionalConfigurationProperty.html) — Details about a provisional configuration.

- `renewType`: string — Renewal frequency.
