# CreateCaseActionProperty

- Source: Generated at build time
- Type last changed: v2.116.0 · 22 Dec 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';

declare const emptyValue: any;
const createCaseActionProperty: connect.CfnRule.CreateCaseActionProperty = {
  fields: [{
    id: 'id',
    value: {
      booleanValue: false,
      doubleValue: 123,
      emptyValue: emptyValue,
      stringValue: 'stringValue',
    },
  }],
  templateId: 'templateId',
};
```

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

# empty_value: Any

create_case_action_property = connect.CfnRule.CreateCaseActionProperty(
    fields=[connect.CfnRule.FieldProperty(
        id="id",
        value=connect.CfnRule.FieldValueProperty(
            boolean_value=False,
            double_value=123,
            empty_value=empty_value,
            string_value="stringValue"
        )
    )],
    template_id="templateId"
)
```

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

Object emptyValue;

CreateCaseActionProperty createCaseActionProperty = CreateCaseActionProperty.builder()
        .fields(List.of(FieldProperty.builder()
                .id("id")
                .value(FieldValueProperty.builder()
                        .booleanValue(false)
                        .doubleValue(123)
                        .emptyValue(emptyValue)
                        .stringValue("stringValue")
                        .build())
                .build()))
        .templateId("templateId")
        .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 emptyValue;

var createCaseActionProperty = new CreateCaseActionProperty {
    Fields = new [] { new FieldProperty {
        Id = "id",
        Value = new FieldValueProperty {
            BooleanValue = false,
            DoubleValue = 123,
            EmptyValue = emptyValue,
            StringValue = "stringValue"
        }
    } },
    TemplateId = "templateId"
};
```

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"

var emptyValue interface{}

createCaseActionProperty := &CreateCaseActionProperty{
	Fields: []interface{}{
		&FieldProperty{
			Id: jsii.String("id"),
			Value: &FieldValueProperty{
				BooleanValue: jsii.Boolean(false),
				DoubleValue: jsii.Number(123),
				EmptyValue: emptyValue,
				StringValue: jsii.String("stringValue"),
			},
		},
	},
	TemplateId: jsii.String("templateId"),
}
```

## Properties

- `fields`: [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) | [CfnRule.FieldProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnRule.FieldProperty.html)[] (required) — An array of case fields.

- `templateId`: string (required)
