# DateTimeParameterDeclarationProperty

A parameter declaration for the `DateTime` data type.

- 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 dateTimeParameterDeclarationProperty: quicksight.CfnAnalysis.DateTimeParameterDeclarationProperty = {
  name: 'name',

  // the properties below are optional
  defaultValues: {
    dynamicValue: {
      defaultValueColumn: {
        columnName: 'columnName',

        // the properties below are optional
        dataSetIdentifier: 'dataSetIdentifier',
        topicIdentifier: 'topicIdentifier',
      },

      // the properties below are optional
      groupNameColumn: {
        columnName: 'columnName',

        // the properties below are optional
        dataSetIdentifier: 'dataSetIdentifier',
        topicIdentifier: 'topicIdentifier',
      },
      userNameColumn: {
        columnName: 'columnName',

        // the properties below are optional
        dataSetIdentifier: 'dataSetIdentifier',
        topicIdentifier: 'topicIdentifier',
      },
    },
    rollingDate: {
      expression: 'expression',

      // the properties below are optional
      dataSetIdentifier: 'dataSetIdentifier',
    },
    staticValues: ['staticValues'],
  },
  mappedDataSetParameters: [{
    dataSetIdentifier: 'dataSetIdentifier',
    dataSetParameterName: 'dataSetParameterName',
  }],
  timeGranularity: 'timeGranularity',
  valueWhenUnset: {
    customValue: 'customValue',
    valueWhenUnsetOption: 'valueWhenUnsetOption',
  },
};
```

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_parameter_declaration_property = quicksight.CfnAnalysis.DateTimeParameterDeclarationProperty(
    name="name",

    # the properties below are optional
    default_values=quicksight.CfnAnalysis.DateTimeDefaultValuesProperty(
        dynamic_value=quicksight.CfnAnalysis.DynamicDefaultValueProperty(
            default_value_column=quicksight.CfnAnalysis.ColumnIdentifierProperty(
                column_name="columnName",

                # the properties below are optional
                data_set_identifier="dataSetIdentifier",
                topic_identifier="topicIdentifier"
            ),

            # the properties below are optional
            group_name_column=quicksight.CfnAnalysis.ColumnIdentifierProperty(
                column_name="columnName",

                # the properties below are optional
                data_set_identifier="dataSetIdentifier",
                topic_identifier="topicIdentifier"
            ),
            user_name_column=quicksight.CfnAnalysis.ColumnIdentifierProperty(
                column_name="columnName",

                # the properties below are optional
                data_set_identifier="dataSetIdentifier",
                topic_identifier="topicIdentifier"
            )
        ),
        rolling_date=quicksight.CfnAnalysis.RollingDateConfigurationProperty(
            expression="expression",

            # the properties below are optional
            data_set_identifier="dataSetIdentifier"
        ),
        static_values=["staticValues"]
    ),
    mapped_data_set_parameters=[quicksight.CfnAnalysis.MappedDataSetParameterProperty(
        data_set_identifier="dataSetIdentifier",
        data_set_parameter_name="dataSetParameterName"
    )],
    time_granularity="timeGranularity",
    value_when_unset=quicksight.CfnAnalysis.DateTimeValueWhenUnsetConfigurationProperty(
        custom_value="customValue",
        value_when_unset_option="valueWhenUnsetOption"
    )
)
```

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

DateTimeParameterDeclarationProperty dateTimeParameterDeclarationProperty = DateTimeParameterDeclarationProperty.builder()
        .name("name")

        // the properties below are optional
        .defaultValues(DateTimeDefaultValuesProperty.builder()
                .dynamicValue(DynamicDefaultValueProperty.builder()
                        .defaultValueColumn(ColumnIdentifierProperty.builder()
                                .columnName("columnName")

                                // the properties below are optional
                                .dataSetIdentifier("dataSetIdentifier")
                                .topicIdentifier("topicIdentifier")
                                .build())

                        // the properties below are optional
                        .groupNameColumn(ColumnIdentifierProperty.builder()
                                .columnName("columnName")

                                // the properties below are optional
                                .dataSetIdentifier("dataSetIdentifier")
                                .topicIdentifier("topicIdentifier")
                                .build())
                        .userNameColumn(ColumnIdentifierProperty.builder()
                                .columnName("columnName")

                                // the properties below are optional
                                .dataSetIdentifier("dataSetIdentifier")
                                .topicIdentifier("topicIdentifier")
                                .build())
                        .build())
                .rollingDate(RollingDateConfigurationProperty.builder()
                        .expression("expression")

                        // the properties below are optional
                        .dataSetIdentifier("dataSetIdentifier")
                        .build())
                .staticValues(List.of("staticValues"))
                .build())
        .mappedDataSetParameters(List.of(MappedDataSetParameterProperty.builder()
                .dataSetIdentifier("dataSetIdentifier")
                .dataSetParameterName("dataSetParameterName")
                .build()))
        .timeGranularity("timeGranularity")
        .valueWhenUnset(DateTimeValueWhenUnsetConfigurationProperty.builder()
                .customValue("customValue")
                .valueWhenUnsetOption("valueWhenUnsetOption")
                .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.QuickSight;

var dateTimeParameterDeclarationProperty = new DateTimeParameterDeclarationProperty {
    Name = "name",

    // the properties below are optional
    DefaultValues = new DateTimeDefaultValuesProperty {
        DynamicValue = new DynamicDefaultValueProperty {
            DefaultValueColumn = new ColumnIdentifierProperty {
                ColumnName = "columnName",

                // the properties below are optional
                DataSetIdentifier = "dataSetIdentifier",
                TopicIdentifier = "topicIdentifier"
            },

            // the properties below are optional
            GroupNameColumn = new ColumnIdentifierProperty {
                ColumnName = "columnName",

                // the properties below are optional
                DataSetIdentifier = "dataSetIdentifier",
                TopicIdentifier = "topicIdentifier"
            },
            UserNameColumn = new ColumnIdentifierProperty {
                ColumnName = "columnName",

                // the properties below are optional
                DataSetIdentifier = "dataSetIdentifier",
                TopicIdentifier = "topicIdentifier"
            }
        },
        RollingDate = new RollingDateConfigurationProperty {
            Expression = "expression",

            // the properties below are optional
            DataSetIdentifier = "dataSetIdentifier"
        },
        StaticValues = new [] { "staticValues" }
    },
    MappedDataSetParameters = new [] { new MappedDataSetParameterProperty {
        DataSetIdentifier = "dataSetIdentifier",
        DataSetParameterName = "dataSetParameterName"
    } },
    TimeGranularity = "timeGranularity",
    ValueWhenUnset = new DateTimeValueWhenUnsetConfigurationProperty {
        CustomValue = "customValue",
        ValueWhenUnsetOption = "valueWhenUnsetOption"
    }
};
```

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"

dateTimeParameterDeclarationProperty := &DateTimeParameterDeclarationProperty{
	Name: jsii.String("name"),

	// the properties below are optional
	DefaultValues: &DateTimeDefaultValuesProperty{
		DynamicValue: &DynamicDefaultValueProperty{
			DefaultValueColumn: &ColumnIdentifierProperty{
				ColumnName: jsii.String("columnName"),

				// the properties below are optional
				DataSetIdentifier: jsii.String("dataSetIdentifier"),
				TopicIdentifier: jsii.String("topicIdentifier"),
			},

			// the properties below are optional
			GroupNameColumn: &ColumnIdentifierProperty{
				ColumnName: jsii.String("columnName"),

				// the properties below are optional
				DataSetIdentifier: jsii.String("dataSetIdentifier"),
				TopicIdentifier: jsii.String("topicIdentifier"),
			},
			UserNameColumn: &ColumnIdentifierProperty{
				ColumnName: jsii.String("columnName"),

				// the properties below are optional
				DataSetIdentifier: jsii.String("dataSetIdentifier"),
				TopicIdentifier: jsii.String("topicIdentifier"),
			},
		},
		RollingDate: &RollingDateConfigurationProperty{
			Expression: jsii.String("expression"),

			// the properties below are optional
			DataSetIdentifier: jsii.String("dataSetIdentifier"),
		},
		StaticValues: []*string{
			jsii.String("staticValues"),
		},
	},
	MappedDataSetParameters: []interface{}{
		&MappedDataSetParameterProperty{
			DataSetIdentifier: jsii.String("dataSetIdentifier"),
			DataSetParameterName: jsii.String("dataSetParameterName"),
		},
	},
	TimeGranularity: jsii.String("timeGranularity"),
	ValueWhenUnset: &DateTimeValueWhenUnsetConfigurationProperty{
		CustomValue: jsii.String("customValue"),
		ValueWhenUnsetOption: jsii.String("valueWhenUnsetOption"),
	},
}
```

## Properties

- `defaultValues`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.DateTimeDefaultValuesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.DateTimeDefaultValuesProperty.html) — The default values of a parameter.

  If the parameter is a single-value parameter, a maximum of one default value can be provided.

- `mappedDataSetParameters`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.MappedDataSetParameterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.MappedDataSetParameterProperty.html)[]

- `name`: string (required) — The name of the parameter that is being declared.

- `timeGranularity`: string — The level of time precision that is used to aggregate `DateTime` values.

- `valueWhenUnset`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.DateTimeValueWhenUnsetConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.DateTimeValueWhenUnsetConfigurationProperty.html) — The configuration that defines the default value of a `DateTime` parameter when a value has not been set.
