# StringDatasetParameterProperty

A string 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 stringDatasetParameterProperty: quicksight.CfnDataSet.StringDatasetParameterProperty = {
  id: 'id',
  name: 'name',
  valueType: 'valueType',

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

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

string_dataset_parameter_property = quicksight.CfnDataSet.StringDatasetParameterProperty(
    id="id",
    name="name",
    value_type="valueType",

    # the properties below are optional
    default_values=quicksight.CfnDataSet.StringDatasetParameterDefaultValuesProperty(
        static_values=["staticValues"]
    )
)
```

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

StringDatasetParameterProperty stringDatasetParameterProperty = StringDatasetParameterProperty.builder()
        .id("id")
        .name("name")
        .valueType("valueType")

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

    // the properties below are optional
    DefaultValues = new StringDatasetParameterDefaultValuesProperty {
        StaticValues = new [] { "staticValues" }
    }
};
```

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"

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

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

## Properties

- `defaultValues`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSet.StringDatasetParameterDefaultValuesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSet.StringDatasetParameterDefaultValuesProperty.html) — A list of default values for a given string dataset parameter type.

  This structure only accepts static values.

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

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

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

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