Skip to content
v2.277.0

ContactHooksProperty Struct Added in v2.277.0 ​

The contact hooks for the task template.

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';
const contactHooksProperty: connect.CfnTaskTemplate.ContactHooksProperty = {
  wrapUpFlowArn: 'wrapUpFlowArn',
};
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

contact_hooks_property = connect.CfnTaskTemplate.ContactHooksProperty(
    wrap_up_flow_arn="wrapUpFlowArn"
)
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.*;

ContactHooksProperty contactHooksProperty = ContactHooksProperty.builder()
        .wrapUpFlowArn("wrapUpFlowArn")
        .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 contactHooksProperty = new ContactHooksProperty {
    WrapUpFlowArn = "wrapUpFlowArn"
};
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"

contactHooksProperty := &ContactHooksProperty{
	WrapUpFlowArn: jsii.String("wrapUpFlowArn"),
}

Properties ​

wrapUpFlowArnoptionalstringwrap_up_flow_arnoptionalstrwrapUpFlowArnoptionalStringWrapUpFlowArnoptionalstringWrapUpFlowArnoptional*string #
The identifier (arn) of the flow module that runs when an agent attempts to disconnect from a task created by referencing this template.

If no agent ever connects to the task, the flow module runs when the task is terminated.