Class Hook
Creates an inline hook.
This resource allows you to create and configure an inline hook.
Example Usage
using Pulumi;
using Okta = Pulumi.Okta;
class MyStack : Stack
{
public MyStack()
{
var example = new Okta.Inline.Hook("example", new Okta.Inline.HookArgs
{
Auth = new Okta.Inline.Inputs.HookAuthArgs
{
Key = "Authorization",
Type = "HEADER",
Value = "secret",
},
Channel = new Okta.Inline.Inputs.HookChannelArgs
{
Method = "POST",
Uri = "https://example.com/test",
Version = "1.0.0",
},
Type = "com.okta.oauth2.tokens.transform",
Version = "1.0.1",
});
}
}
Inherited Members
Namespace: Pulumi.Okta.Inline
Assembly: Pulumi.Okta.dll
Syntax
public class Hook : CustomResource
Constructors
View SourceHook(String, HookArgs, CustomResourceOptions)
Create a Hook resource with the given unique name, arguments, and options.
Declaration
public Hook(string name, HookArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| HookArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAuth
Authentication required for inline hook request.
Declaration
public Output<HookAuth> Auth { get; }
Property Value
| Type | Description |
|---|---|
| Output<HookAuth> |
Channel
Details of the endpoint the inline hook will hit.
Declaration
public Output<HookChannel> Channel { get; }
Property Value
| Type | Description |
|---|---|
| Output<HookChannel> |
Headers
Map of headers to send along in inline hook request.
Declaration
public Output<ImmutableArray<HookHeader>> Headers { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<HookHeader>> |
Name
The inline hook display name.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Status
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Type
The type of hook to trigger. Currently only "HTTP" is supported.
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Version
The version of the endpoint.
Declaration
public Output<string> Version { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, HookState, CustomResourceOptions)
Get an existing Hook resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Hook Get(string name, Input<string> id, HookState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| HookState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Hook |