profile

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 Mapping

type Mapping struct {
	pulumi.CustomResourceState

	// Whether apply the changes to all users with this profile after updating or creating the these mappings.
	AlwaysApply pulumi.BoolPtrOutput `pulumi:"alwaysApply"`
	// 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"`
}

This resource allows you to manage a profile mapping by source and target IDs.

> **NOTE:** If using this resource with OAuth2 scopes, this resource requires `okta.profileMappings.manage` scope.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-okta/sdk/v3/go/okta/profile"
"github.com/pulumi/pulumi-okta/sdk/v3/go/okta/user"
"github.com/pulumi/pulumi/sdk/v3/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

func (*Mapping) ElementType() reflect.Type

func (*Mapping) ToMappingOutput

func (i *Mapping) ToMappingOutput() MappingOutput

func (*Mapping) ToMappingOutputWithContext

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

type MappingArgs

type MappingArgs struct {
	// Whether apply the changes to all users with this profile after updating or creating the these mappings.
	AlwaysApply pulumi.BoolPtrInput
	// 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

type MappingArray []MappingInput

func (MappingArray) ElementType

func (MappingArray) ElementType() reflect.Type

func (MappingArray) ToMappingArrayOutput

func (i MappingArray) ToMappingArrayOutput() MappingArrayOutput

func (MappingArray) ToMappingArrayOutputWithContext

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

type MappingArrayInput

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

type MappingArrayOutput struct{ *pulumi.OutputState }

func (MappingArrayOutput) ElementType

func (MappingArrayOutput) ElementType() reflect.Type

func (MappingArrayOutput) Index

func (MappingArrayOutput) ToMappingArrayOutput

func (o MappingArrayOutput) ToMappingArrayOutput() MappingArrayOutput

func (MappingArrayOutput) ToMappingArrayOutputWithContext

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

type MappingInput

type MappingInput interface {
	pulumi.Input

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

type MappingMap

type MappingMap map[string]MappingInput

func (MappingMap) ElementType

func (MappingMap) ElementType() reflect.Type

func (MappingMap) ToMappingMapOutput

func (i MappingMap) ToMappingMapOutput() MappingMapOutput

func (MappingMap) ToMappingMapOutputWithContext

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

type MappingMapInput

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

type MappingMapOutput struct{ *pulumi.OutputState }

func (MappingMapOutput) ElementType

func (MappingMapOutput) ElementType() reflect.Type

func (MappingMapOutput) MapIndex

func (MappingMapOutput) ToMappingMapOutput

func (o MappingMapOutput) ToMappingMapOutput() MappingMapOutput

func (MappingMapOutput) ToMappingMapOutputWithContext

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

type MappingOutput struct{ *pulumi.OutputState }

func (MappingOutput) AlwaysApply added in v3.9.0

func (o MappingOutput) AlwaysApply() pulumi.BoolPtrOutput

Whether apply the changes to all users with this profile after updating or creating the these mappings.

func (MappingOutput) DeleteWhenAbsent added in v3.9.0

func (o MappingOutput) DeleteWhenAbsent() pulumi.BoolPtrOutput

Tells the provider whether to attempt to delete missing mappings under profile mapping.

func (MappingOutput) ElementType

func (MappingOutput) ElementType() reflect.Type

func (MappingOutput) Mappings added in v3.9.0

Priority of the policy.

func (MappingOutput) SourceId added in v3.9.0

func (o MappingOutput) SourceId() pulumi.StringOutput

Source id of the profile mapping.

func (MappingOutput) SourceName added in v3.9.0

func (o MappingOutput) SourceName() pulumi.StringOutput

Name of the mapping source.

func (MappingOutput) SourceType added in v3.9.0

func (o MappingOutput) SourceType() pulumi.StringOutput

ID of the mapping source.

func (MappingOutput) TargetId added in v3.9.0

func (o MappingOutput) TargetId() pulumi.StringOutput

ID of the mapping target.

func (MappingOutput) TargetName added in v3.9.0

func (o MappingOutput) TargetName() pulumi.StringOutput

Name of the mapping target.

func (MappingOutput) TargetType added in v3.9.0

func (o MappingOutput) TargetType() pulumi.StringOutput

ID of the mapping target.

func (MappingOutput) ToMappingOutput

func (o MappingOutput) ToMappingOutput() MappingOutput

func (MappingOutput) ToMappingOutputWithContext

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

type MappingState

type MappingState struct {
	// Whether apply the changes to all users with this profile after updating or creating the these mappings.
	AlwaysApply pulumi.BoolPtrInput
	// 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