# DateTimeDatasetParameterProperty

A date time parameter that is created in the dataset.

- 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 dateTimeDatasetParameterProperty: quicksight.CfnDataSet.DateTimeDatasetParameterProperty = {
  id: 'id',
  name: 'name',
  valueType: 'valueType',

  // the properties below are optional
  defaultValues: {
    staticValues: ['staticValues'],
  },
  timeGranularity: 'timeGranularity',
};
```

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

date_time_dataset_parameter_property = quicksight.CfnDataSet.DateTimeDatasetParameterProperty(
    id="id",
    name="name",
    value_type="valueType",

    # the properties below are optional
    default_values=quicksight.CfnDataSet.DateTimeDatasetParameterDefaultValuesProperty(
        static_values=["staticValues"]
    ),
    time_granularity="timeGranularity"
)
```

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

DateTimeDatasetParameterProperty dateTimeDatasetParameterProperty = DateTimeDatasetParameterProperty.builder()
        .id("id")
        .name("name")
        .valueType("valueType")

        // the properties below are optional
        .defaultValues(DateTimeDatasetParameterDefaultValuesProperty.builder()
                .staticValues(List.of("staticValues"))
                .build())
        .timeGranularity("timeGranularity")
        .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 dateTimeDatasetParameterProperty = new DateTimeDatasetParameterProperty {
    Id = "id",
    Name = "name",
    ValueType = "valueType",

    // the properties below are optional
    DefaultValues = new DateTimeDatasetParameterDefaultValuesProperty {
        StaticValues = new [] { "staticValues" }
    },
    TimeGranularity = "timeGranularity"
};
```

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"

dateTimeDatasetParameterProperty := &DateTimeDatasetParameterProperty{
	Id: jsii.String("id"),
	Name: jsii.String("name"),
	ValueType: jsii.String("valueType"),

	// the properties below are optional
	DefaultValues: &DateTimeDatasetParameterDefaultValuesProperty{
		StaticValues: []*string{
			jsii.String("staticValues"),
		},
	},
	TimeGranularity: jsii.String("timeGranularity"),
}
```

## Properties

- `defaultValues`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSet.DateTimeDatasetParameterDefaultValuesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSet.DateTimeDatasetParameterDefaultValuesProperty.html) — A list of default values for a given date time parameter.

  This structure only accepts static values.

- `id`: string (required) — An identifier for the parameter that is created in the dataset.

- `name`: string (required) — The name of the date time parameter that is created in the dataset.

- `timeGranularity`: string — The time granularity of the date time parameter.

- `valueType`: string (required) — The value type of the dataset parameter.

  Valid values are `single value` or `multi value` .
