# ScheduleFrequencyProperty

The frequency for the refresh schedule.

- 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_quicksight as quicksight } from 'aws-cdk-lib';
const scheduleFrequencyProperty: quicksight.CfnRefreshSchedule.ScheduleFrequencyProperty = {
  interval: 'interval',
  refreshOnDay: {
    dayOfMonth: 'dayOfMonth',
    dayOfWeek: 'dayOfWeek',
  },
  timeOfTheDay: 'timeOfTheDay',
  timeZone: 'timeZone',
};
```

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_quicksight as quicksight

schedule_frequency_property = quicksight.CfnRefreshSchedule.ScheduleFrequencyProperty(
    interval="interval",
    refresh_on_day=quicksight.CfnRefreshSchedule.RefreshOnDayProperty(
        day_of_month="dayOfMonth",
        day_of_week="dayOfWeek"
    ),
    time_of_the_day="timeOfTheDay",
    time_zone="timeZone"
)
```

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

ScheduleFrequencyProperty scheduleFrequencyProperty = ScheduleFrequencyProperty.builder()
        .interval("interval")
        .refreshOnDay(RefreshOnDayProperty.builder()
                .dayOfMonth("dayOfMonth")
                .dayOfWeek("dayOfWeek")
                .build())
        .timeOfTheDay("timeOfTheDay")
        .timeZone("timeZone")
        .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.QuickSight;

var scheduleFrequencyProperty = new ScheduleFrequencyProperty {
    Interval = "interval",
    RefreshOnDay = new RefreshOnDayProperty {
        DayOfMonth = "dayOfMonth",
        DayOfWeek = "dayOfWeek"
    },
    TimeOfTheDay = "timeOfTheDay",
    TimeZone = "timeZone"
};
```

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"

scheduleFrequencyProperty := &ScheduleFrequencyProperty{
	Interval: jsii.String("interval"),
	RefreshOnDay: &RefreshOnDayProperty{
		DayOfMonth: jsii.String("dayOfMonth"),
		DayOfWeek: jsii.String("dayOfWeek"),
	},
	TimeOfTheDay: jsii.String("timeOfTheDay"),
	TimeZone: jsii.String("timeZone"),
}
```

## Properties

- `interval`: string — The interval between scheduled refreshes. Valid values are as follows:.

  - `MINUTE15` : The dataset refreshes every 15 minutes. This value is only supported for incremental refreshes. This interval can only be used for one schedule per dataset.
  - `MINUTE30` : The dataset refreshes every 30 minutes. This value is only supported for incremental refreshes. This interval can only be used for one schedule per dataset.
  - `HOURLY` : The dataset refreshes every hour. This interval can only be used for one schedule per dataset.
  - `DAILY` : The dataset refreshes every day.
  - `WEEKLY` : The dataset refreshes every week.
  - `MONTHLY` : The dataset refreshes every month.

- `refreshOnDay`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRefreshSchedule.RefreshOnDayProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnRefreshSchedule.RefreshOnDayProperty.html) — The day of the week that you want to schedule the refresh on.

  This value is required for weekly and monthly refresh intervals.

- `timeOfTheDay`: string — The time of day that you want the dataset to refresh.

  This value is expressed in HH:MM format. This field is not required for schedules that refresh hourly.

- `timeZone`: string — The timezone that you want the refresh schedule to use.

  The timezone ID must match a corresponding ID found on `java.util.time.getAvailableIDs()` .
