vault_jwt_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 {
	// BoundIssuer: string, optional
	BoundIssuer terra.StringValue `hcl:"bound_issuer,attr"`
	// DefaultRole: string, optional
	DefaultRole terra.StringValue `hcl:"default_role,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"`
	// JwksCaPem: string, optional
	JwksCaPem terra.StringValue `hcl:"jwks_ca_pem,attr"`
	// JwksUrl: string, optional
	JwksUrl terra.StringValue `hcl:"jwks_url,attr"`
	// JwtSupportedAlgs: list of string, optional
	JwtSupportedAlgs terra.ListValue[terra.StringValue] `hcl:"jwt_supported_algs,attr"`
	// JwtValidationPubkeys: list of string, optional
	JwtValidationPubkeys terra.ListValue[terra.StringValue] `hcl:"jwt_validation_pubkeys,attr"`
	// Local: bool, optional
	Local terra.BoolValue `hcl:"local,attr"`
	// Namespace: string, optional
	Namespace terra.StringValue `hcl:"namespace,attr"`
	// NamespaceInState: bool, optional
	NamespaceInState terra.BoolValue `hcl:"namespace_in_state,attr"`
	// OidcClientId: string, optional
	OidcClientId terra.StringValue `hcl:"oidc_client_id,attr"`
	// OidcClientSecret: string, optional
	OidcClientSecret terra.StringValue `hcl:"oidc_client_secret,attr"`
	// OidcDiscoveryCaPem: string, optional
	OidcDiscoveryCaPem terra.StringValue `hcl:"oidc_discovery_ca_pem,attr"`
	// OidcDiscoveryUrl: string, optional
	OidcDiscoveryUrl terra.StringValue `hcl:"oidc_discovery_url,attr"`
	// OidcResponseMode: string, optional
	OidcResponseMode terra.StringValue `hcl:"oidc_response_mode,attr"`
	// OidcResponseTypes: list of string, optional
	OidcResponseTypes terra.ListValue[terra.StringValue] `hcl:"oidc_response_types,attr"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// ProviderConfig: map of string, optional
	ProviderConfig terra.MapValue[terra.StringValue] `hcl:"provider_config,attr"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// Tune: min=0
	Tune []Tune `hcl:"tune,block" validate:"min=0"`
}

Args contains the configurations for vault_jwt_auth_backend.

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_jwt_auth_backend.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (vjab *Resource) Attributes() vaultJwtAuthBackendAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (vjab *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (vjab *Resource) State() (*vaultJwtAuthBackendState, bool)

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

func (*Resource) StateMust

func (vjab *Resource) StateMust() *vaultJwtAuthBackendState

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

func (*Resource) Type

func (vjab *Resource) Type() string

Type returns the Terraform object type for Resource.

type Tune

type Tune struct {
	// AllowedResponseHeaders: list of string, optional
	AllowedResponseHeaders terra.ListValue[terra.StringValue] `hcl:"allowed_response_headers,attr"`
	// AuditNonHmacRequestKeys: list of string, optional
	AuditNonHmacRequestKeys terra.ListValue[terra.StringValue] `hcl:"audit_non_hmac_request_keys,attr"`
	// AuditNonHmacResponseKeys: list of string, optional
	AuditNonHmacResponseKeys terra.ListValue[terra.StringValue] `hcl:"audit_non_hmac_response_keys,attr"`
	// DefaultLeaseTtl: string, optional
	DefaultLeaseTtl terra.StringValue `hcl:"default_lease_ttl,attr"`
	// ListingVisibility: string, optional
	ListingVisibility terra.StringValue `hcl:"listing_visibility,attr"`
	// MaxLeaseTtl: string, optional
	MaxLeaseTtl terra.StringValue `hcl:"max_lease_ttl,attr"`
	// PassthroughRequestHeaders: list of string, optional
	PassthroughRequestHeaders terra.ListValue[terra.StringValue] `hcl:"passthrough_request_headers,attr"`
	// TokenType: string, optional
	TokenType terra.StringValue `hcl:"token_type,attr"`
}

type TuneAttributes

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

func (TuneAttributes) AllowedResponseHeaders

func (t TuneAttributes) AllowedResponseHeaders() terra.ListValue[terra.StringValue]

func (TuneAttributes) AuditNonHmacRequestKeys

func (t TuneAttributes) AuditNonHmacRequestKeys() terra.ListValue[terra.StringValue]

func (TuneAttributes) AuditNonHmacResponseKeys

func (t TuneAttributes) AuditNonHmacResponseKeys() terra.ListValue[terra.StringValue]

func (TuneAttributes) DefaultLeaseTtl

func (t TuneAttributes) DefaultLeaseTtl() terra.StringValue

func (TuneAttributes) InternalRef

func (t TuneAttributes) InternalRef() (terra.Reference, error)

func (TuneAttributes) InternalTokens

func (t TuneAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TuneAttributes) InternalWithRef

func (t TuneAttributes) InternalWithRef(ref terra.Reference) TuneAttributes

func (TuneAttributes) ListingVisibility

func (t TuneAttributes) ListingVisibility() terra.StringValue

func (TuneAttributes) MaxLeaseTtl

func (t TuneAttributes) MaxLeaseTtl() terra.StringValue

func (TuneAttributes) PassthroughRequestHeaders

func (t TuneAttributes) PassthroughRequestHeaders() terra.ListValue[terra.StringValue]

func (TuneAttributes) TokenType

func (t TuneAttributes) TokenType() terra.StringValue

type TuneState

type TuneState struct {
	AllowedResponseHeaders    []string `json:"allowed_response_headers"`
	AuditNonHmacRequestKeys   []string `json:"audit_non_hmac_request_keys"`
	AuditNonHmacResponseKeys  []string `json:"audit_non_hmac_response_keys"`
	DefaultLeaseTtl           string   `json:"default_lease_ttl"`
	ListingVisibility         string   `json:"listing_visibility"`
	MaxLeaseTtl               string   `json:"max_lease_ttl"`
	PassthroughRequestHeaders []string `json:"passthrough_request_headers"`
	TokenType                 string   `json:"token_type"`
}

Jump to

Keyboard shortcuts

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