# DefaultFieldValueProperty

Describes a default field and its corresponding value.

- 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_connect as connect } from 'aws-cdk-lib';
const defaultFieldValueProperty: connect.CfnTaskTemplate.DefaultFieldValueProperty = {
  defaultValue: 'defaultValue',
  id: {
    name: 'name',
  },
};
```

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_connect as connect

default_field_value_property = connect.CfnTaskTemplate.DefaultFieldValueProperty(
    default_value="defaultValue",
    id=connect.CfnTaskTemplate.FieldIdentifierProperty(
        name="name"
    )
)
```

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

DefaultFieldValueProperty defaultFieldValueProperty = DefaultFieldValueProperty.builder()
        .defaultValue("defaultValue")
        .id(FieldIdentifierProperty.builder()
                .name("name")
                .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.Connect;

var defaultFieldValueProperty = new DefaultFieldValueProperty {
    DefaultValue = "defaultValue",
    Id = new FieldIdentifierProperty {
        Name = "name"
    }
};
```

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"

defaultFieldValueProperty := &DefaultFieldValueProperty{
	DefaultValue: jsii.String("defaultValue"),
	Id: &FieldIdentifierProperty{
		Name: jsii.String("name"),
	},
}
```

## Properties

- `defaultValue`: string (required) — Default value for the field.

- `id`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTaskTemplate.FieldIdentifierProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnTaskTemplate.FieldIdentifierProperty.html) (required) — Identifier of a field.
