trustedorigin

package
v3.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Origin

type Origin struct {
	pulumi.CustomResourceState

	// Whether the Trusted Origin is active or not - can only be issued post-creation. By default, it is 'true'.
	Active pulumi.BoolPtrOutput `pulumi:"active"`
	// Unique name for this trusted origin.
	Name pulumi.StringOutput `pulumi:"name"`
	// Unique origin URL for this trusted origin.
	Origin pulumi.StringOutput `pulumi:"origin"`
	// Scopes of the Trusted Origin - can be `"CORS"` and/or `"REDIRECT"`.
	Scopes pulumi.StringArrayOutput `pulumi:"scopes"`
}

Creates a Trusted Origin.

This resource allows you to create and configure a Trusted Origin.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-okta/sdk/v3/go/okta/trustedorigin"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := trustedorigin.NewOrigin(ctx, "example", &trustedorigin.OriginArgs{
			Origin: pulumi.String("https://example.com"),
			Scopes: pulumi.StringArray{
				pulumi.String("CORS"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

A Trusted Origin can be imported via the Okta ID.

```sh

$ pulumi import okta:trustedorigin/origin:Origin example <trusted origin id>

```

func GetOrigin

func GetOrigin(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OriginState, opts ...pulumi.ResourceOption) (*Origin, error)

GetOrigin gets an existing Origin resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOrigin

func NewOrigin(ctx *pulumi.Context,
	name string, args *OriginArgs, opts ...pulumi.ResourceOption) (*Origin, error)

NewOrigin registers a new resource with the given unique name, arguments, and options.

func (*Origin) ElementType

func (*Origin) ElementType() reflect.Type

func (*Origin) ToOriginOutput

func (i *Origin) ToOriginOutput() OriginOutput

func (*Origin) ToOriginOutputWithContext

func (i *Origin) ToOriginOutputWithContext(ctx context.Context) OriginOutput

type OriginArgs

type OriginArgs struct {
	// Whether the Trusted Origin is active or not - can only be issued post-creation. By default, it is 'true'.
	Active pulumi.BoolPtrInput
	// Unique name for this trusted origin.
	Name pulumi.StringPtrInput
	// Unique origin URL for this trusted origin.
	Origin pulumi.StringInput
	// Scopes of the Trusted Origin - can be `"CORS"` and/or `"REDIRECT"`.
	Scopes pulumi.StringArrayInput
}

The set of arguments for constructing a Origin resource.

func (OriginArgs) ElementType

func (OriginArgs) ElementType() reflect.Type

type OriginArray

type OriginArray []OriginInput

func (OriginArray) ElementType

func (OriginArray) ElementType() reflect.Type

func (OriginArray) ToOriginArrayOutput

func (i OriginArray) ToOriginArrayOutput() OriginArrayOutput

func (OriginArray) ToOriginArrayOutputWithContext

func (i OriginArray) ToOriginArrayOutputWithContext(ctx context.Context) OriginArrayOutput

type OriginArrayInput

type OriginArrayInput interface {
	pulumi.Input

	ToOriginArrayOutput() OriginArrayOutput
	ToOriginArrayOutputWithContext(context.Context) OriginArrayOutput
}

OriginArrayInput is an input type that accepts OriginArray and OriginArrayOutput values. You can construct a concrete instance of `OriginArrayInput` via:

OriginArray{ OriginArgs{...} }

type OriginArrayOutput

type OriginArrayOutput struct{ *pulumi.OutputState }

func (OriginArrayOutput) ElementType

func (OriginArrayOutput) ElementType() reflect.Type

func (OriginArrayOutput) Index

func (OriginArrayOutput) ToOriginArrayOutput

func (o OriginArrayOutput) ToOriginArrayOutput() OriginArrayOutput

func (OriginArrayOutput) ToOriginArrayOutputWithContext

func (o OriginArrayOutput) ToOriginArrayOutputWithContext(ctx context.Context) OriginArrayOutput

type OriginInput

type OriginInput interface {
	pulumi.Input

	ToOriginOutput() OriginOutput
	ToOriginOutputWithContext(ctx context.Context) OriginOutput
}

type OriginMap

type OriginMap map[string]OriginInput

func (OriginMap) ElementType

func (OriginMap) ElementType() reflect.Type

func (OriginMap) ToOriginMapOutput

func (i OriginMap) ToOriginMapOutput() OriginMapOutput

func (OriginMap) ToOriginMapOutputWithContext

func (i OriginMap) ToOriginMapOutputWithContext(ctx context.Context) OriginMapOutput

type OriginMapInput

type OriginMapInput interface {
	pulumi.Input

	ToOriginMapOutput() OriginMapOutput
	ToOriginMapOutputWithContext(context.Context) OriginMapOutput
}

OriginMapInput is an input type that accepts OriginMap and OriginMapOutput values. You can construct a concrete instance of `OriginMapInput` via:

OriginMap{ "key": OriginArgs{...} }

type OriginMapOutput

type OriginMapOutput struct{ *pulumi.OutputState }

func (OriginMapOutput) ElementType

func (OriginMapOutput) ElementType() reflect.Type

func (OriginMapOutput) MapIndex

func (OriginMapOutput) ToOriginMapOutput

func (o OriginMapOutput) ToOriginMapOutput() OriginMapOutput

func (OriginMapOutput) ToOriginMapOutputWithContext

func (o OriginMapOutput) ToOriginMapOutputWithContext(ctx context.Context) OriginMapOutput

type OriginOutput

type OriginOutput struct{ *pulumi.OutputState }

func (OriginOutput) Active added in v3.9.0

func (o OriginOutput) Active() pulumi.BoolPtrOutput

Whether the Trusted Origin is active or not - can only be issued post-creation. By default, it is 'true'.

func (OriginOutput) ElementType

func (OriginOutput) ElementType() reflect.Type

func (OriginOutput) Name added in v3.9.0

func (o OriginOutput) Name() pulumi.StringOutput

Unique name for this trusted origin.

func (OriginOutput) Origin added in v3.9.0

func (o OriginOutput) Origin() pulumi.StringOutput

Unique origin URL for this trusted origin.

func (OriginOutput) Scopes added in v3.9.0

Scopes of the Trusted Origin - can be `"CORS"` and/or `"REDIRECT"`.

func (OriginOutput) ToOriginOutput

func (o OriginOutput) ToOriginOutput() OriginOutput

func (OriginOutput) ToOriginOutputWithContext

func (o OriginOutput) ToOriginOutputWithContext(ctx context.Context) OriginOutput

type OriginState

type OriginState struct {
	// Whether the Trusted Origin is active or not - can only be issued post-creation. By default, it is 'true'.
	Active pulumi.BoolPtrInput
	// Unique name for this trusted origin.
	Name pulumi.StringPtrInput
	// Unique origin URL for this trusted origin.
	Origin pulumi.StringPtrInput
	// Scopes of the Trusted Origin - can be `"CORS"` and/or `"REDIRECT"`.
	Scopes pulumi.StringArrayInput
}

func (OriginState) ElementType

func (OriginState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL