profile

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 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 Mapping

type Mapping struct {
	pulumi.CustomResourceState

	// Tells the provider whether to attempt to delete missing mappings under profile mapping.
	DeleteWhenAbsent pulumi.BoolPtrOutput `pulumi:"deleteWhenAbsent"`
	// Priority of the policy.
	Mappings MappingMappingArrayOutput `pulumi:"mappings"`
	// Source id of the profile mapping.
	SourceId pulumi.StringOutput `pulumi:"sourceId"`
	// Name of the mapping source.
	SourceName pulumi.StringOutput `pulumi:"sourceName"`
	// ID of the mapping source.
	SourceType pulumi.StringOutput `pulumi:"sourceType"`
	// ID of the mapping target.
	TargetId pulumi.StringOutput `pulumi:"targetId"`
	// Name of the mapping target.
	TargetName pulumi.StringOutput `pulumi:"targetName"`
	// ID of the mapping target.
	TargetType pulumi.StringOutput `pulumi:"targetType"`
}

Manages a profile mapping.

This resource allows you to manage a profile mapping by source id.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-okta/sdk/v2/go/okta/profile"
"github.com/pulumi/pulumi-okta/sdk/v2/go/okta/user"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		user, err := user.GetUserProfileMappingSource(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = profile.NewMapping(ctx, "example", &profile.MappingArgs{
			DeleteWhenAbsent: pulumi.Bool(true),
			Mappings: profile.MappingMappingArray{
				&profile.MappingMappingArgs{
					Expression: pulumi.String("appuser.firstName"),
					Id:         pulumi.String("firstName"),
				},
				&profile.MappingMappingArgs{
					Expression: pulumi.String("appuser.lastName"),
					Id:         pulumi.String("lastName"),
				},
				&profile.MappingMappingArgs{
					Expression: pulumi.String("appuser.email"),
					Id:         pulumi.String("email"),
				},
				&profile.MappingMappingArgs{
					Expression: pulumi.String("appuser.email"),
					Id:         pulumi.String("login"),
				},
			},
			SourceId: pulumi.String("<source id>"),
			TargetId: pulumi.String(user.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

There is no reason to import this resource. You can simply create the resource config and point it to a source ID. Mind here, once the source is deleted this resources will no longer exist.

func GetMapping

func GetMapping(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MappingState, opts ...pulumi.ResourceOption) (*Mapping, error)

GetMapping gets an existing Mapping 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 NewMapping

func NewMapping(ctx *pulumi.Context,
	name string, args *MappingArgs, opts ...pulumi.ResourceOption) (*Mapping, error)

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

func (*Mapping) ElementType added in v2.6.2

func (*Mapping) ElementType() reflect.Type

func (*Mapping) ToMappingOutput added in v2.6.2

func (i *Mapping) ToMappingOutput() MappingOutput

func (*Mapping) ToMappingOutputWithContext added in v2.6.2

func (i *Mapping) ToMappingOutputWithContext(ctx context.Context) MappingOutput

func (*Mapping) ToMappingPtrOutput added in v2.10.1

func (i *Mapping) ToMappingPtrOutput() MappingPtrOutput

func (*Mapping) ToMappingPtrOutputWithContext added in v2.10.1

func (i *Mapping) ToMappingPtrOutputWithContext(ctx context.Context) MappingPtrOutput

type MappingArgs

type MappingArgs struct {
	// Tells the provider whether to attempt to delete missing mappings under profile mapping.
	DeleteWhenAbsent pulumi.BoolPtrInput
	// Priority of the policy.
	Mappings MappingMappingArrayInput
	// Source id of the profile mapping.
	SourceId pulumi.StringInput
	// ID of the mapping target.
	TargetId pulumi.StringInput
}

The set of arguments for constructing a Mapping resource.

func (MappingArgs) ElementType

func (MappingArgs) ElementType() reflect.Type

type MappingArray added in v2.10.1

type MappingArray []MappingInput

func (MappingArray) ElementType added in v2.10.1

func (MappingArray) ElementType() reflect.Type

func (MappingArray) ToMappingArrayOutput added in v2.10.1

func (i MappingArray) ToMappingArrayOutput() MappingArrayOutput

func (MappingArray) ToMappingArrayOutputWithContext added in v2.10.1

func (i MappingArray) ToMappingArrayOutputWithContext(ctx context.Context) MappingArrayOutput

type MappingArrayInput added in v2.10.1

type MappingArrayInput interface {
	pulumi.Input

	ToMappingArrayOutput() MappingArrayOutput
	ToMappingArrayOutputWithContext(context.Context) MappingArrayOutput
}

MappingArrayInput is an input type that accepts MappingArray and MappingArrayOutput values. You can construct a concrete instance of `MappingArrayInput` via:

MappingArray{ MappingArgs{...} }

type MappingArrayOutput added in v2.10.1

type MappingArrayOutput struct{ *pulumi.OutputState }

func (MappingArrayOutput) ElementType added in v2.10.1

func (MappingArrayOutput) ElementType() reflect.Type

func (MappingArrayOutput) Index added in v2.10.1

func (MappingArrayOutput) ToMappingArrayOutput added in v2.10.1

func (o MappingArrayOutput) ToMappingArrayOutput() MappingArrayOutput

func (MappingArrayOutput) ToMappingArrayOutputWithContext added in v2.10.1

func (o MappingArrayOutput) ToMappingArrayOutputWithContext(ctx context.Context) MappingArrayOutput

type MappingInput added in v2.6.2

type MappingInput interface {
	pulumi.Input

	ToMappingOutput() MappingOutput
	ToMappingOutputWithContext(ctx context.Context) MappingOutput
}

type MappingMap added in v2.10.1

type MappingMap map[string]MappingInput

func (MappingMap) ElementType added in v2.10.1

func (MappingMap) ElementType() reflect.Type

func (MappingMap) ToMappingMapOutput added in v2.10.1

func (i MappingMap) ToMappingMapOutput() MappingMapOutput

func (MappingMap) ToMappingMapOutputWithContext added in v2.10.1

func (i MappingMap) ToMappingMapOutputWithContext(ctx context.Context) MappingMapOutput

type MappingMapInput added in v2.10.1

type MappingMapInput interface {
	pulumi.Input

	ToMappingMapOutput() MappingMapOutput
	ToMappingMapOutputWithContext(context.Context) MappingMapOutput
}

MappingMapInput is an input type that accepts MappingMap and MappingMapOutput values. You can construct a concrete instance of `MappingMapInput` via:

MappingMap{ "key": MappingArgs{...} }

type MappingMapOutput added in v2.10.1

type MappingMapOutput struct{ *pulumi.OutputState }

func (MappingMapOutput) ElementType added in v2.10.1

func (MappingMapOutput) ElementType() reflect.Type

func (MappingMapOutput) MapIndex added in v2.10.1

func (MappingMapOutput) ToMappingMapOutput added in v2.10.1

func (o MappingMapOutput) ToMappingMapOutput() MappingMapOutput

func (MappingMapOutput) ToMappingMapOutputWithContext added in v2.10.1

func (o MappingMapOutput) ToMappingMapOutputWithContext(ctx context.Context) MappingMapOutput

type MappingMapping

type MappingMapping struct {
	// Combination or single source properties that will be mapped to the target property.
	Expression string `pulumi:"expression"`
	// Key of mapping.
	Id string `pulumi:"id"`
	// Whether to update target properties on user create & update or just on create.
	PushStatus *string `pulumi:"pushStatus"`
}

type MappingMappingArgs

type MappingMappingArgs struct {
	// Combination or single source properties that will be mapped to the target property.
	Expression pulumi.StringInput `pulumi:"expression"`
	// Key of mapping.
	Id pulumi.StringInput `pulumi:"id"`
	// Whether to update target properties on user create & update or just on create.
	PushStatus pulumi.StringPtrInput `pulumi:"pushStatus"`
}

func (MappingMappingArgs) ElementType

func (MappingMappingArgs) ElementType() reflect.Type

func (MappingMappingArgs) ToMappingMappingOutput

func (i MappingMappingArgs) ToMappingMappingOutput() MappingMappingOutput

func (MappingMappingArgs) ToMappingMappingOutputWithContext

func (i MappingMappingArgs) ToMappingMappingOutputWithContext(ctx context.Context) MappingMappingOutput

type MappingMappingArray

type MappingMappingArray []MappingMappingInput

func (MappingMappingArray) ElementType

func (MappingMappingArray) ElementType() reflect.Type

func (MappingMappingArray) ToMappingMappingArrayOutput

func (i MappingMappingArray) ToMappingMappingArrayOutput() MappingMappingArrayOutput

func (MappingMappingArray) ToMappingMappingArrayOutputWithContext

func (i MappingMappingArray) ToMappingMappingArrayOutputWithContext(ctx context.Context) MappingMappingArrayOutput

type MappingMappingArrayInput

type MappingMappingArrayInput interface {
	pulumi.Input

	ToMappingMappingArrayOutput() MappingMappingArrayOutput
	ToMappingMappingArrayOutputWithContext(context.Context) MappingMappingArrayOutput
}

MappingMappingArrayInput is an input type that accepts MappingMappingArray and MappingMappingArrayOutput values. You can construct a concrete instance of `MappingMappingArrayInput` via:

MappingMappingArray{ MappingMappingArgs{...} }

type MappingMappingArrayOutput

type MappingMappingArrayOutput struct{ *pulumi.OutputState }

func (MappingMappingArrayOutput) ElementType

func (MappingMappingArrayOutput) ElementType() reflect.Type

func (MappingMappingArrayOutput) Index

func (MappingMappingArrayOutput) ToMappingMappingArrayOutput

func (o MappingMappingArrayOutput) ToMappingMappingArrayOutput() MappingMappingArrayOutput

func (MappingMappingArrayOutput) ToMappingMappingArrayOutputWithContext

func (o MappingMappingArrayOutput) ToMappingMappingArrayOutputWithContext(ctx context.Context) MappingMappingArrayOutput

type MappingMappingInput

type MappingMappingInput interface {
	pulumi.Input

	ToMappingMappingOutput() MappingMappingOutput
	ToMappingMappingOutputWithContext(context.Context) MappingMappingOutput
}

MappingMappingInput is an input type that accepts MappingMappingArgs and MappingMappingOutput values. You can construct a concrete instance of `MappingMappingInput` via:

MappingMappingArgs{...}

type MappingMappingOutput

type MappingMappingOutput struct{ *pulumi.OutputState }

func (MappingMappingOutput) ElementType

func (MappingMappingOutput) ElementType() reflect.Type

func (MappingMappingOutput) Expression

func (o MappingMappingOutput) Expression() pulumi.StringOutput

Combination or single source properties that will be mapped to the target property.

func (MappingMappingOutput) Id

Key of mapping.

func (MappingMappingOutput) PushStatus

Whether to update target properties on user create & update or just on create.

func (MappingMappingOutput) ToMappingMappingOutput

func (o MappingMappingOutput) ToMappingMappingOutput() MappingMappingOutput

func (MappingMappingOutput) ToMappingMappingOutputWithContext

func (o MappingMappingOutput) ToMappingMappingOutputWithContext(ctx context.Context) MappingMappingOutput

type MappingOutput added in v2.6.2

type MappingOutput struct {
	*pulumi.OutputState
}

func (MappingOutput) ElementType added in v2.6.2

func (MappingOutput) ElementType() reflect.Type

func (MappingOutput) ToMappingOutput added in v2.6.2

func (o MappingOutput) ToMappingOutput() MappingOutput

func (MappingOutput) ToMappingOutputWithContext added in v2.6.2

func (o MappingOutput) ToMappingOutputWithContext(ctx context.Context) MappingOutput

func (MappingOutput) ToMappingPtrOutput added in v2.10.1

func (o MappingOutput) ToMappingPtrOutput() MappingPtrOutput

func (MappingOutput) ToMappingPtrOutputWithContext added in v2.10.1

func (o MappingOutput) ToMappingPtrOutputWithContext(ctx context.Context) MappingPtrOutput

type MappingPtrInput added in v2.10.1

type MappingPtrInput interface {
	pulumi.Input

	ToMappingPtrOutput() MappingPtrOutput
	ToMappingPtrOutputWithContext(ctx context.Context) MappingPtrOutput
}

type MappingPtrOutput added in v2.10.1

type MappingPtrOutput struct {
	*pulumi.OutputState
}

func (MappingPtrOutput) ElementType added in v2.10.1

func (MappingPtrOutput) ElementType() reflect.Type

func (MappingPtrOutput) ToMappingPtrOutput added in v2.10.1

func (o MappingPtrOutput) ToMappingPtrOutput() MappingPtrOutput

func (MappingPtrOutput) ToMappingPtrOutputWithContext added in v2.10.1

func (o MappingPtrOutput) ToMappingPtrOutputWithContext(ctx context.Context) MappingPtrOutput

type MappingState

type MappingState struct {
	// Tells the provider whether to attempt to delete missing mappings under profile mapping.
	DeleteWhenAbsent pulumi.BoolPtrInput
	// Priority of the policy.
	Mappings MappingMappingArrayInput
	// Source id of the profile mapping.
	SourceId pulumi.StringPtrInput
	// Name of the mapping source.
	SourceName pulumi.StringPtrInput
	// ID of the mapping source.
	SourceType pulumi.StringPtrInput
	// ID of the mapping target.
	TargetId pulumi.StringPtrInput
	// Name of the mapping target.
	TargetName pulumi.StringPtrInput
	// ID of the mapping target.
	TargetType pulumi.StringPtrInput
}

func (MappingState) ElementType

func (MappingState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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