
com.pulumi.okta.EventHook Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.okta;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.okta.EventHookArgs;
import com.pulumi.okta.Utilities;
import com.pulumi.okta.inputs.EventHookState;
import com.pulumi.okta.outputs.EventHookHeader;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Creates an event hook. This resource allows you to create and configure an event hook.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.okta.EventHook;
* import com.pulumi.okta.EventHookArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* var example = new EventHook("example", EventHookArgs.builder()
* .name("example")
* .events(
* "user.lifecycle.create",
* "user.lifecycle.delete.initiated")
* .channel(Map.ofEntries(
* Map.entry("type", "HTTP"),
* Map.entry("version", "1.0.0"),
* Map.entry("uri", "https://example.com/test")
* ))
* .auth(Map.ofEntries(
* Map.entry("type", "HEADER"),
* Map.entry("key", "Authorization"),
* Map.entry("value", "123")
* ))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* ```sh
* $ pulumi import okta:index/eventHook:EventHook example <hook_id>
* ```
*
*/
@ResourceType(type="okta:index/eventHook:EventHook")
public class EventHook extends com.pulumi.resources.CustomResource {
/**
* Details of the endpoint the event hook will hit. - 'version' - (Required) The version of the channel. The
* currently-supported version is '1.0.0'. - 'uri' - (Required) The URI the hook will hit. - 'type' - (Optional) The type
* of hook to trigger. Currently, the only supported type is 'HTTP'.
*
*/
@Export(name="auth", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> auth;
/**
* @return Details of the endpoint the event hook will hit. - 'version' - (Required) The version of the channel. The
* currently-supported version is '1.0.0'. - 'uri' - (Required) The URI the hook will hit. - 'type' - (Optional) The type
* of hook to trigger. Currently, the only supported type is 'HTTP'.
*
*/
public Output>> auth() {
return Codegen.optional(this.auth);
}
/**
* Details of the endpoint the event hook will hit.
*
*/
@Export(name="channel", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy