vault_okta_auth_backend

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// BaseUrl: string, optional
	BaseUrl terra.StringValue `hcl:"base_url,attr"`
	// BypassOktaMfa: bool, optional
	BypassOktaMfa terra.BoolValue `hcl:"bypass_okta_mfa,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DisableRemount: bool, optional
	DisableRemount terra.BoolValue `hcl:"disable_remount,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MaxTtl: string, optional
	MaxTtl terra.StringValue `hcl:"max_ttl,attr"`
	// Namespace: string, optional
	Namespace terra.StringValue `hcl:"namespace,attr"`
	// Organization: string, required
	Organization terra.StringValue `hcl:"organization,attr" validate:"required"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// Token: string, optional
	Token terra.StringValue `hcl:"token,attr"`
	// Ttl: string, optional
	Ttl terra.StringValue `hcl:"ttl,attr"`
	// Group: min=0
	Group []Group `hcl:"group,block" validate:"min=0"`
	// User: min=0
	User []User `hcl:"user,block" validate:"min=0"`
}

Args contains the configurations for vault_okta_auth_backend.

type Group

type Group struct {
	// GroupName: string, optional
	GroupName terra.StringValue `hcl:"group_name,attr"`
	// Policies: set of string, optional
	Policies terra.SetValue[terra.StringValue] `hcl:"policies,attr"`
}

type GroupAttributes

type GroupAttributes struct {
	// contains filtered or unexported fields
}

func (GroupAttributes) GroupName

func (g GroupAttributes) GroupName() terra.StringValue

func (GroupAttributes) InternalRef

func (g GroupAttributes) InternalRef() (terra.Reference, error)

func (GroupAttributes) InternalTokens

func (g GroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GroupAttributes) InternalWithRef

func (g GroupAttributes) InternalWithRef(ref terra.Reference) GroupAttributes

func (GroupAttributes) Policies

type GroupState

type GroupState struct {
	GroupName string   `json:"group_name"`
	Policies  []string `json:"policies"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource vault_okta_auth_backend.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (voab *Resource) Attributes() vaultOktaAuthBackendAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (voab *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (voab *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (voab *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (voab *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (voab *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (voab *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (voab *Resource) State() (*vaultOktaAuthBackendState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (voab *Resource) StateMust() *vaultOktaAuthBackendState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (voab *Resource) Type() string

Type returns the Terraform object type for Resource.

type User

type User struct {
	// Groups: set of string, optional
	Groups terra.SetValue[terra.StringValue] `hcl:"groups,attr"`
	// Policies: set of string, optional
	Policies terra.SetValue[terra.StringValue] `hcl:"policies,attr"`
	// Username: string, optional
	Username terra.StringValue `hcl:"username,attr"`
}

type UserAttributes

type UserAttributes struct {
	// contains filtered or unexported fields
}

func (UserAttributes) Groups

func (UserAttributes) InternalRef

func (u UserAttributes) InternalRef() (terra.Reference, error)

func (UserAttributes) InternalTokens

func (u UserAttributes) InternalTokens() (hclwrite.Tokens, error)

func (UserAttributes) InternalWithRef

func (u UserAttributes) InternalWithRef(ref terra.Reference) UserAttributes

func (UserAttributes) Policies

func (UserAttributes) Username

func (u UserAttributes) Username() terra.StringValue

type UserState

type UserState struct {
	Groups   []string `json:"groups"`
	Policies []string `json:"policies"`
	Username string   `json:"username"`
}

Jump to

Keyboard shortcuts

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