import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface ProcessautomationTriggerConfig extends cdktf.TerraformMetaArguments { /** * How long to delay processing of a trigger after an event passes the match criteria. Must be an number between 60 and 900 inclusive. Only one of event_ttl_seconds or delay_by_seconds can be set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#delay_by_seconds ProcessautomationTrigger#delay_by_seconds} */ readonly delayBySeconds?: number; /** * A description of the trigger * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#description ProcessautomationTrigger#description} */ readonly description?: string; /** * Whether or not the trigger should be fired on events * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#enabled ProcessautomationTrigger#enabled} */ readonly enabled: boolean | cdktf.IResolvable; /** * How old an event can be to fire the trigger. Must be an number greater than or equal to 10. Only one of event_ttl_seconds or delay_by_seconds can be set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#event_ttl_seconds ProcessautomationTrigger#event_ttl_seconds} */ readonly eventTtlSeconds?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#id ProcessautomationTrigger#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * Match criteria that controls when the trigger will fire. NOTE: The match_criteria field type has changed from a complex object to a string. This was done to allow for complex JSON object definitions. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#match_criteria ProcessautomationTrigger#match_criteria} */ readonly matchCriteria?: string; /** * Name of the Trigger * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#name ProcessautomationTrigger#name} */ readonly name: string; /** * Topic name that will fire trigger. Changing the topic_name attribute will cause the processautomation_trigger object to be dropped and recreated with a new ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#topic_name ProcessautomationTrigger#topic_name} */ readonly topicName: string; /** * target block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#target ProcessautomationTrigger#target} */ readonly target: ProcessautomationTriggerTarget; } export interface ProcessautomationTriggerTargetWorkflowTargetSettings { /** * The data format to use when invoking target. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#data_format ProcessautomationTrigger#data_format} */ readonly dataFormat?: string; } export declare function processautomationTriggerTargetWorkflowTargetSettingsToTerraform(struct?: ProcessautomationTriggerTargetWorkflowTargetSettingsOutputReference | ProcessautomationTriggerTargetWorkflowTargetSettings): any; export declare function processautomationTriggerTargetWorkflowTargetSettingsToHclTerraform(struct?: ProcessautomationTriggerTargetWorkflowTargetSettingsOutputReference | ProcessautomationTriggerTargetWorkflowTargetSettings): any; export declare class ProcessautomationTriggerTargetWorkflowTargetSettingsOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): ProcessautomationTriggerTargetWorkflowTargetSettings | undefined; set internalValue(value: ProcessautomationTriggerTargetWorkflowTargetSettings | undefined); private _dataFormat?; get dataFormat(): string; set dataFormat(value: string); resetDataFormat(): void; get dataFormatInput(): string; } export interface ProcessautomationTriggerTarget { /** * Id of the target the trigger is configured to hit * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#id ProcessautomationTrigger#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id: string; /** * Type of the target the trigger is configured to hit * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#type ProcessautomationTrigger#type} */ readonly type: string; /** * workflow_target_settings block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#workflow_target_settings ProcessautomationTrigger#workflow_target_settings} */ readonly workflowTargetSettings?: ProcessautomationTriggerTargetWorkflowTargetSettings; } export declare function processautomationTriggerTargetToTerraform(struct?: ProcessautomationTriggerTargetOutputReference | ProcessautomationTriggerTarget): any; export declare function processautomationTriggerTargetToHclTerraform(struct?: ProcessautomationTriggerTargetOutputReference | ProcessautomationTriggerTarget): any; export declare class ProcessautomationTriggerTargetOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): ProcessautomationTriggerTarget | undefined; set internalValue(value: ProcessautomationTriggerTarget | undefined); private _id?; get id(): string; set id(value: string); get idInput(): string; private _type?; get type(): string; set type(value: string); get typeInput(): string; private _workflowTargetSettings; get workflowTargetSettings(): ProcessautomationTriggerTargetWorkflowTargetSettingsOutputReference; putWorkflowTargetSettings(value: ProcessautomationTriggerTargetWorkflowTargetSettings): void; resetWorkflowTargetSettings(): void; get workflowTargetSettingsInput(): ProcessautomationTriggerTargetWorkflowTargetSettings; } /** * Represents a {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger genesyscloud_processautomation_trigger} */ export declare class ProcessautomationTrigger extends cdktf.TerraformResource { static readonly tfResourceType = "genesyscloud_processautomation_trigger"; /** * Generates CDKTF code for importing a ProcessautomationTrigger resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the ProcessautomationTrigger to import * @param importFromId The id of the existing ProcessautomationTrigger that should be imported. Refer to the {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the ProcessautomationTrigger to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/processautomation_trigger genesyscloud_processautomation_trigger} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options ProcessautomationTriggerConfig */ constructor(scope: Construct, id: string, config: ProcessautomationTriggerConfig); private _delayBySeconds?; get delayBySeconds(): number; set delayBySeconds(value: number); resetDelayBySeconds(): void; get delayBySecondsInput(): number; private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string; private _enabled?; get enabled(): boolean | cdktf.IResolvable; set enabled(value: boolean | cdktf.IResolvable); get enabledInput(): any; private _eventTtlSeconds?; get eventTtlSeconds(): number; set eventTtlSeconds(value: number); resetEventTtlSeconds(): void; get eventTtlSecondsInput(): number; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _matchCriteria?; get matchCriteria(): string; set matchCriteria(value: string); resetMatchCriteria(): void; get matchCriteriaInput(): string; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _topicName?; get topicName(): string; set topicName(value: string); get topicNameInput(): string; private _target; get target(): ProcessautomationTriggerTargetOutputReference; putTarget(value: ProcessautomationTriggerTarget): void; get targetInput(): ProcessautomationTriggerTarget; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }