Skip to content
v2.278.0

CreateCaseActionProperty Struct ​

Example ​

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
# 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
// 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();
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"
};
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 ​

fieldsIResolvable | IResolvable | CfnRule.FieldProperty[]fieldstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FieldProperty]]]fieldsIResolvableFieldsIResolvableFieldsinterface{} required #
An array of case fields.
templateIdstringtemplate_idstrtemplateIdStringTemplateIdstringTemplateId*string required #