profile

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 4 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. 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

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 MappingInput added in v2.6.2

type MappingInput interface {
	pulumi.Input

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

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

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