# CfnScheduleProps

Properties for defining a `CfnSchedule`.

Used as props by: [CfnSchedule](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_databrew.CfnSchedule.html)

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_databrew as databrew } from 'aws-cdk-lib';
const cfnScheduleProps: databrew.CfnScheduleProps = {
  cronExpression: 'cronExpression',
  name: 'name',

  // the properties below are optional
  jobNames: ['jobNames'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

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

cfn_schedule_props = databrew.CfnScheduleProps(
    cron_expression="cronExpression",
    name="name",

    # the properties below are optional
    job_names=["jobNames"],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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

CfnScheduleProps cfnScheduleProps = CfnScheduleProps.builder()
        .cronExpression("cronExpression")
        .name("name")

        // the properties below are optional
        .jobNames(List.of("jobNames"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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.DataBrew;

var cfnScheduleProps = new CfnScheduleProps {
    CronExpression = "cronExpression",
    Name = "name",

    // the properties below are optional
    JobNames = new [] { "jobNames" },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnScheduleProps := &CfnScheduleProps{
	CronExpression: jsii.String("cronExpression"),
	Name: jsii.String("name"),

	// the properties below are optional
	JobNames: []*string{
		jsii.String("jobNames"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `cronExpression`: string (required) — The dates and times when the job is to run.

  For more information, see [Working with cron expressions for recipe jobs](https://docs.aws.amazon.com/databrew/latest/dg/jobs.recipe.html#jobs.cron) in the *AWS Glue DataBrew Developer Guide* .

- `jobNames`: string[] — A list of jobs to be run, according to the schedule.

- `name`: string (required) — The name of the schedule.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Metadata tags that have been applied to the schedule.
