Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Hook
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Okta.Inline
Assembly: Pulumi.Okta.dll
Syntax
public class Hook : CustomResource

Constructors

View Source

Hook(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 Source

Auth

Authentication required for inline hook request.

Declaration
public Output<HookAuth> Auth { get; }
Property Value
Type Description
Output<HookAuth>
View Source

Channel

Details of the endpoint the inline hook will hit.

Declaration
public Output<HookChannel> Channel { get; }
Property Value
Type Description
Output<HookChannel>
View Source

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>>
View Source

Name

The inline hook display name.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Status

Declaration
public Output<string> Status { get; }
Property Value
Type Description
Output<System.String>
View Source

Type

The type of hook to trigger. Currently only &quot;HTTP&quot; is supported.

Declaration
public Output<string> Type { get; }
Property Value
Type Description
Output<System.String>
View Source

Version

The version of the endpoint.

Declaration
public Output<string> Version { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.