# FulfillmentUpdatesSpecificationProperty

Struct · External

Provides information for updating the user on the progress of fulfilling an intent.

- 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_lex as lex } from 'aws-cdk-lib';
const fulfillmentUpdatesSpecificationProperty: lex.CfnBot.FulfillmentUpdatesSpecificationProperty = {
  active: false,

  // the properties below are optional
  startResponse: {
    delayInSeconds: 123,
    messageGroups: [{
      message: {
        customPayload: {
          value: 'value',
        },
        imageResponseCard: {
          title: 'title',

          // the properties below are optional
          buttons: [{
            text: 'text',
            value: 'value',
          }],
          imageUrl: 'imageUrl',
          subtitle: 'subtitle',
        },
        plainTextMessage: {
          value: 'value',
        },
        ssmlMessage: {
          value: 'value',
        },
      },

      // the properties below are optional
      variations: [{
        customPayload: {
          value: 'value',
        },
        imageResponseCard: {
          title: 'title',

          // the properties below are optional
          buttons: [{
            text: 'text',
            value: 'value',
          }],
          imageUrl: 'imageUrl',
          subtitle: 'subtitle',
        },
        plainTextMessage: {
          value: 'value',
        },
        ssmlMessage: {
          value: 'value',
        },
      }],
    }],

    // the properties below are optional
    allowInterrupt: false,
  },
  timeoutInSeconds: 123,
  updateResponse: {
    frequencyInSeconds: 123,
    messageGroups: [{
      message: {
        customPayload: {
          value: 'value',
        },
        imageResponseCard: {
          title: 'title',

          // the properties below are optional
          buttons: [{
            text: 'text',
            value: 'value',
          }],
          imageUrl: 'imageUrl',
          subtitle: 'subtitle',
        },
        plainTextMessage: {
          value: 'value',
        },
        ssmlMessage: {
          value: 'value',
        },
      },

      // the properties below are optional
      variations: [{
        customPayload: {
          value: 'value',
        },
        imageResponseCard: {
          title: 'title',

          // the properties below are optional
          buttons: [{
            text: 'text',
            value: 'value',
          }],
          imageUrl: 'imageUrl',
          subtitle: 'subtitle',
        },
        plainTextMessage: {
          value: 'value',
        },
        ssmlMessage: {
          value: 'value',
        },
      }],
    }],

    // the properties below are optional
    allowInterrupt: false,
  },
};
```

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_lex as lex

fulfillment_updates_specification_property = lex.CfnBot.FulfillmentUpdatesSpecificationProperty(
    active=False,

    # the properties below are optional
    start_response=lex.CfnBot.FulfillmentStartResponseSpecificationProperty(
        delay_in_seconds=123,
        message_groups=[lex.CfnBot.MessageGroupProperty(
            message=lex.CfnBot.MessageProperty(
                custom_payload=lex.CfnBot.CustomPayloadProperty(
                    value="value"
                ),
                image_response_card=lex.CfnBot.ImageResponseCardProperty(
                    title="title",

                    # the properties below are optional
                    buttons=[lex.CfnBot.ButtonProperty(
                        text="text",
                        value="value"
                    )],
                    image_url="imageUrl",
                    subtitle="subtitle"
                ),
                plain_text_message=lex.CfnBot.PlainTextMessageProperty(
                    value="value"
                ),
                ssml_message=lex.CfnBot.SSMLMessageProperty(
                    value="value"
                )
            ),

            # the properties below are optional
            variations=[lex.CfnBot.MessageProperty(
                custom_payload=lex.CfnBot.CustomPayloadProperty(
                    value="value"
                ),
                image_response_card=lex.CfnBot.ImageResponseCardProperty(
                    title="title",

                    # the properties below are optional
                    buttons=[lex.CfnBot.ButtonProperty(
                        text="text",
                        value="value"
                    )],
                    image_url="imageUrl",
                    subtitle="subtitle"
                ),
                plain_text_message=lex.CfnBot.PlainTextMessageProperty(
                    value="value"
                ),
                ssml_message=lex.CfnBot.SSMLMessageProperty(
                    value="value"
                )
            )]
        )],

        # the properties below are optional
        allow_interrupt=False
    ),
    timeout_in_seconds=123,
    update_response=lex.CfnBot.FulfillmentUpdateResponseSpecificationProperty(
        frequency_in_seconds=123,
        message_groups=[lex.CfnBot.MessageGroupProperty(
            message=lex.CfnBot.MessageProperty(
                custom_payload=lex.CfnBot.CustomPayloadProperty(
                    value="value"
                ),
                image_response_card=lex.CfnBot.ImageResponseCardProperty(
                    title="title",

                    # the properties below are optional
                    buttons=[lex.CfnBot.ButtonProperty(
                        text="text",
                        value="value"
                    )],
                    image_url="imageUrl",
                    subtitle="subtitle"
                ),
                plain_text_message=lex.CfnBot.PlainTextMessageProperty(
                    value="value"
                ),
                ssml_message=lex.CfnBot.SSMLMessageProperty(
                    value="value"
                )
            ),

            # the properties below are optional
            variations=[lex.CfnBot.MessageProperty(
                custom_payload=lex.CfnBot.CustomPayloadProperty(
                    value="value"
                ),
                image_response_card=lex.CfnBot.ImageResponseCardProperty(
                    title="title",

                    # the properties below are optional
                    buttons=[lex.CfnBot.ButtonProperty(
                        text="text",
                        value="value"
                    )],
                    image_url="imageUrl",
                    subtitle="subtitle"
                ),
                plain_text_message=lex.CfnBot.PlainTextMessageProperty(
                    value="value"
                ),
                ssml_message=lex.CfnBot.SSMLMessageProperty(
                    value="value"
                )
            )]
        )],

        # the properties below are optional
        allow_interrupt=False
    )
)
```

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

FulfillmentUpdatesSpecificationProperty fulfillmentUpdatesSpecificationProperty = FulfillmentUpdatesSpecificationProperty.builder()
        .active(false)

        // the properties below are optional
        .startResponse(FulfillmentStartResponseSpecificationProperty.builder()
                .delayInSeconds(123)
                .messageGroups(List.of(MessageGroupProperty.builder()
                        .message(MessageProperty.builder()
                                .customPayload(CustomPayloadProperty.builder()
                                        .value("value")
                                        .build())
                                .imageResponseCard(ImageResponseCardProperty.builder()
                                        .title("title")

                                        // the properties below are optional
                                        .buttons(List.of(ButtonProperty.builder()
                                                .text("text")
                                                .value("value")
                                                .build()))
                                        .imageUrl("imageUrl")
                                        .subtitle("subtitle")
                                        .build())
                                .plainTextMessage(PlainTextMessageProperty.builder()
                                        .value("value")
                                        .build())
                                .ssmlMessage(SSMLMessageProperty.builder()
                                        .value("value")
                                        .build())
                                .build())

                        // the properties below are optional
                        .variations(List.of(MessageProperty.builder()
                                .customPayload(CustomPayloadProperty.builder()
                                        .value("value")
                                        .build())
                                .imageResponseCard(ImageResponseCardProperty.builder()
                                        .title("title")

                                        // the properties below are optional
                                        .buttons(List.of(ButtonProperty.builder()
                                                .text("text")
                                                .value("value")
                                                .build()))
                                        .imageUrl("imageUrl")
                                        .subtitle("subtitle")
                                        .build())
                                .plainTextMessage(PlainTextMessageProperty.builder()
                                        .value("value")
                                        .build())
                                .ssmlMessage(SSMLMessageProperty.builder()
                                        .value("value")
                                        .build())
                                .build()))
                        .build()))

                // the properties below are optional
                .allowInterrupt(false)
                .build())
        .timeoutInSeconds(123)
        .updateResponse(FulfillmentUpdateResponseSpecificationProperty.builder()
                .frequencyInSeconds(123)
                .messageGroups(List.of(MessageGroupProperty.builder()
                        .message(MessageProperty.builder()
                                .customPayload(CustomPayloadProperty.builder()
                                        .value("value")
                                        .build())
                                .imageResponseCard(ImageResponseCardProperty.builder()
                                        .title("title")

                                        // the properties below are optional
                                        .buttons(List.of(ButtonProperty.builder()
                                                .text("text")
                                                .value("value")
                                                .build()))
                                        .imageUrl("imageUrl")
                                        .subtitle("subtitle")
                                        .build())
                                .plainTextMessage(PlainTextMessageProperty.builder()
                                        .value("value")
                                        .build())
                                .ssmlMessage(SSMLMessageProperty.builder()
                                        .value("value")
                                        .build())
                                .build())

                        // the properties below are optional
                        .variations(List.of(MessageProperty.builder()
                                .customPayload(CustomPayloadProperty.builder()
                                        .value("value")
                                        .build())
                                .imageResponseCard(ImageResponseCardProperty.builder()
                                        .title("title")

                                        // the properties below are optional
                                        .buttons(List.of(ButtonProperty.builder()
                                                .text("text")
                                                .value("value")
                                                .build()))
                                        .imageUrl("imageUrl")
                                        .subtitle("subtitle")
                                        .build())
                                .plainTextMessage(PlainTextMessageProperty.builder()
                                        .value("value")
                                        .build())
                                .ssmlMessage(SSMLMessageProperty.builder()
                                        .value("value")
                                        .build())
                                .build()))
                        .build()))

                // the properties below are optional
                .allowInterrupt(false)
                .build())
        .build();
```

C#:

```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.Lex;

var fulfillmentUpdatesSpecificationProperty = new FulfillmentUpdatesSpecificationProperty {
    Active = false,

    // the properties below are optional
    StartResponse = new FulfillmentStartResponseSpecificationProperty {
        DelayInSeconds = 123,
        MessageGroups = new [] { new MessageGroupProperty {
            Message = new MessageProperty {
                CustomPayload = new CustomPayloadProperty {
                    Value = "value"
                },
                ImageResponseCard = new ImageResponseCardProperty {
                    Title = "title",

                    // the properties below are optional
                    Buttons = new [] { new ButtonProperty {
                        Text = "text",
                        Value = "value"
                    } },
                    ImageUrl = "imageUrl",
                    Subtitle = "subtitle"
                },
                PlainTextMessage = new PlainTextMessageProperty {
                    Value = "value"
                },
                SsmlMessage = new SSMLMessageProperty {
                    Value = "value"
                }
            },

            // the properties below are optional
            Variations = new [] { new MessageProperty {
                CustomPayload = new CustomPayloadProperty {
                    Value = "value"
                },
                ImageResponseCard = new ImageResponseCardProperty {
                    Title = "title",

                    // the properties below are optional
                    Buttons = new [] { new ButtonProperty {
                        Text = "text",
                        Value = "value"
                    } },
                    ImageUrl = "imageUrl",
                    Subtitle = "subtitle"
                },
                PlainTextMessage = new PlainTextMessageProperty {
                    Value = "value"
                },
                SsmlMessage = new SSMLMessageProperty {
                    Value = "value"
                }
            } }
        } },

        // the properties below are optional
        AllowInterrupt = false
    },
    TimeoutInSeconds = 123,
    UpdateResponse = new FulfillmentUpdateResponseSpecificationProperty {
        FrequencyInSeconds = 123,
        MessageGroups = new [] { new MessageGroupProperty {
            Message = new MessageProperty {
                CustomPayload = new CustomPayloadProperty {
                    Value = "value"
                },
                ImageResponseCard = new ImageResponseCardProperty {
                    Title = "title",

                    // the properties below are optional
                    Buttons = new [] { new ButtonProperty {
                        Text = "text",
                        Value = "value"
                    } },
                    ImageUrl = "imageUrl",
                    Subtitle = "subtitle"
                },
                PlainTextMessage = new PlainTextMessageProperty {
                    Value = "value"
                },
                SsmlMessage = new SSMLMessageProperty {
                    Value = "value"
                }
            },

            // the properties below are optional
            Variations = new [] { new MessageProperty {
                CustomPayload = new CustomPayloadProperty {
                    Value = "value"
                },
                ImageResponseCard = new ImageResponseCardProperty {
                    Title = "title",

                    // the properties below are optional
                    Buttons = new [] { new ButtonProperty {
                        Text = "text",
                        Value = "value"
                    } },
                    ImageUrl = "imageUrl",
                    Subtitle = "subtitle"
                },
                PlainTextMessage = new PlainTextMessageProperty {
                    Value = "value"
                },
                SsmlMessage = new SSMLMessageProperty {
                    Value = "value"
                }
            } }
        } },

        // the properties below are optional
        AllowInterrupt = false
    }
};
```

Go:

```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"

fulfillmentUpdatesSpecificationProperty := &FulfillmentUpdatesSpecificationProperty{
	Active: jsii.Boolean(false),

	// the properties below are optional
	StartResponse: &FulfillmentStartResponseSpecificationProperty{
		DelayInSeconds: jsii.Number(123),
		MessageGroups: []interface{}{
			&MessageGroupProperty{
				Message: &MessageProperty{
					CustomPayload: &CustomPayloadProperty{
						Value: jsii.String("value"),
					},
					ImageResponseCard: &ImageResponseCardProperty{
						Title: jsii.String("title"),

						// the properties below are optional
						Buttons: []interface{}{
							&ButtonProperty{
								Text: jsii.String("text"),
								Value: jsii.String("value"),
							},
						},
						ImageUrl: jsii.String("imageUrl"),
						Subtitle: jsii.String("subtitle"),
					},
					PlainTextMessage: &PlainTextMessageProperty{
						Value: jsii.String("value"),
					},
					SsmlMessage: &SSMLMessageProperty{
						Value: jsii.String("value"),
					},
				},

				// the properties below are optional
				Variations: []interface{}{
					&MessageProperty{
						CustomPayload: &CustomPayloadProperty{
							Value: jsii.String("value"),
						},
						ImageResponseCard: &ImageResponseCardProperty{
							Title: jsii.String("title"),

							// the properties below are optional
							Buttons: []interface{}{
								&ButtonProperty{
									Text: jsii.String("text"),
									Value: jsii.String("value"),
								},
							},
							ImageUrl: jsii.String("imageUrl"),
							Subtitle: jsii.String("subtitle"),
						},
						PlainTextMessage: &PlainTextMessageProperty{
							Value: jsii.String("value"),
						},
						SsmlMessage: &SSMLMessageProperty{
							Value: jsii.String("value"),
						},
					},
				},
			},
		},

		// the properties below are optional
		AllowInterrupt: jsii.Boolean(false),
	},
	TimeoutInSeconds: jsii.Number(123),
	UpdateResponse: &FulfillmentUpdateResponseSpecificationProperty{
		FrequencyInSeconds: jsii.Number(123),
		MessageGroups: []interface{}{
			&MessageGroupProperty{
				Message: &MessageProperty{
					CustomPayload: &CustomPayloadProperty{
						Value: jsii.String("value"),
					},
					ImageResponseCard: &ImageResponseCardProperty{
						Title: jsii.String("title"),

						// the properties below are optional
						Buttons: []interface{}{
							&ButtonProperty{
								Text: jsii.String("text"),
								Value: jsii.String("value"),
							},
						},
						ImageUrl: jsii.String("imageUrl"),
						Subtitle: jsii.String("subtitle"),
					},
					PlainTextMessage: &PlainTextMessageProperty{
						Value: jsii.String("value"),
					},
					SsmlMessage: &SSMLMessageProperty{
						Value: jsii.String("value"),
					},
				},

				// the properties below are optional
				Variations: []interface{}{
					&MessageProperty{
						CustomPayload: &CustomPayloadProperty{
							Value: jsii.String("value"),
						},
						ImageResponseCard: &ImageResponseCardProperty{
							Title: jsii.String("title"),

							// the properties below are optional
							Buttons: []interface{}{
								&ButtonProperty{
									Text: jsii.String("text"),
									Value: jsii.String("value"),
								},
							},
							ImageUrl: jsii.String("imageUrl"),
							Subtitle: jsii.String("subtitle"),
						},
						PlainTextMessage: &PlainTextMessageProperty{
							Value: jsii.String("value"),
						},
						SsmlMessage: &SSMLMessageProperty{
							Value: jsii.String("value"),
						},
					},
				},
			},
		},

		// the properties below are optional
		AllowInterrupt: jsii.Boolean(false),
	},
}
```

## Properties

- `active`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Determines whether fulfillment updates are sent to the user. When this field is true, updates are sent.

  If the `active` field is set to true, the `startResponse` , `updateResponse` , and `timeoutInSeconds` fields are required.

- `startResponse`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.FulfillmentStartResponseSpecificationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.FulfillmentStartResponseSpecificationProperty.html) — Provides configuration information for the message sent to users when the fulfillment Lambda functions starts running.

- `timeoutInSeconds`: number — The length of time that the fulfillment Lambda function should run before it times out.

- `updateResponse`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.FulfillmentUpdateResponseSpecificationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.FulfillmentUpdateResponseSpecificationProperty.html) — Provides configuration information for messages sent periodically to the user while the fulfillment Lambda function is running.
