Webhook constructor
Webhook(
- String name, {
- WebhookArgs? args,
- CustomResourceOptions? options,
Creates a new Webhook.
name The Pulumi resource name.
args Arguments used to configure this Webhook. The set of arguments for Webhook.
options Resource options controlling this resource's behavior.
Implementation
Webhook(
String name, {
WebhookArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'google-native:dialogflow/v3:Webhook',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
options ?? pulumi.CustomResourceOptions(),
) {
agentId = registerOutput<String>('agentId');
disabled = registerOutput<bool>('disabled');
displayName = registerOutput<String>('displayName');
genericWebService = registerOutput<GoogleCloudDialogflowCxV3WebhookGenericWebServiceResponse>('genericWebService', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return GoogleCloudDialogflowCxV3WebhookGenericWebServiceResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
location = registerOutput<String>('location');
this.name = registerOutput<String>('name');
project = registerOutput<String>('project');
serviceDirectory = registerOutput<GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfigResponse>('serviceDirectory', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfigResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
timeout = registerOutput<String>('timeout');
}