models

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IdentityObject = map[string]attr.Type{
	"name": types.StringType,
	"type": types.StringType,
}

Functions

This section is empty.

Types

type AccessBundleModel added in v0.2.3

type AccessBundleModel struct {
	ID                 types.String        `tfsdk:"id"`
	Name               types.String        `tfsdk:"name"`
	IntegrationTargets []IntegrationTarget `tfsdk:"integration_targets"`
}

AccessBundleModel describes the resource data model.

type AccessFlowModel added in v0.2.2

type AccessFlowModel struct {
	ID                 types.String        `tfsdk:"id"`
	Name               types.String        `tfsdk:"name"`
	Active             types.Bool          `tfsdk:"active"`
	RevokeAfterInSec   types.Number        `tfsdk:"revoke_after_in_sec"`
	Trigger            *Trigger            `tfsdk:"trigger"`
	Grantees           types.Set           `tfsdk:"grantees"`
	IntegrationTargets []IntegrationTarget `tfsdk:"integration_targets"`
	BundleTargets      []BundleTarget      `tfsdk:"bundle_targets"`
	Approvers          types.Set           `tfsdk:"approvers"`
	Settings           *Settings           `tfsdk:"settings"`
}

AccessFlowModel describes the resource data model.

type AwsSecret

type AwsSecret struct {
	Region   types.String `tfsdk:"region"`
	SecretID types.String `tfsdk:"secret_id"`
}

type BundleTarget added in v0.2.3

type BundleTarget struct {
	Name types.String `tfsdk:"name"`
}

type GcpSecret

type GcpSecret struct {
	Project  types.String `tfsdk:"project"`
	SecretID types.String `tfsdk:"secret_id"`
}

type Identity added in v0.2.2

type Identity struct {
	Name types.String `tfsdk:"name"`
	Type types.String `tfsdk:"type"`
}

type IntegrationModel

type IntegrationModel struct {
	ID                     types.String      `tfsdk:"id"`
	Name                   types.String      `tfsdk:"name"`
	Type                   types.String      `tfsdk:"type"`
	ConnectorID            types.String      `tfsdk:"connector_id"`
	ConnectedResourceTypes types.Set         `tfsdk:"connected_resource_types"`
	Metadata               types.Map         `tfsdk:"metadata"`
	AwsSecret              *AwsSecret        `tfsdk:"aws_secret"`
	GcpSecret              *GcpSecret        `tfsdk:"gcp_secret"`
	KubernetesSecret       *KubernetesSecret `tfsdk:"kubernetes_secret"`
}

IntegrationModel describes the resource data model.

func ConvertToIntegrationModel

func ConvertToIntegrationModel(ctx context.Context, integration *apono.Integration) (*IntegrationModel, diag.Diagnostics)

type IntegrationTarget added in v0.2.2

type IntegrationTarget struct {
	Name                   types.String     `tfsdk:"name"`
	ResourceType           types.String     `tfsdk:"resource_type"`
	ResourceIncludeFilters []ResourceFilter `tfsdk:"resource_include_filters"`
	ResourceExcludeFilters []ResourceFilter `tfsdk:"resource_exclude_filters"`
	Permissions            types.Set        `tfsdk:"permissions"`
}

type KubernetesSecret

type KubernetesSecret struct {
	Namespace types.String `tfsdk:"namespace"`
	Name      types.String `tfsdk:"name"`
}

type ResourceFilter added in v0.2.2

type ResourceFilter struct {
	Type  types.String `tfsdk:"type"`
	Key   types.String `tfsdk:"key"`
	Value types.String `tfsdk:"value"`
}

type Settings added in v0.2.2

type Settings struct {
	RequireJustificationOnRequestAgain types.Bool `tfsdk:"require_justification_on_request_again"`
	RequireAllApprovers                types.Bool `tfsdk:"require_all_approvers"`
	ApproverCannotSelfApprove          types.Bool `tfsdk:"approver_cannot_self_approve"`
}

type Timeframe added in v0.2.2

type Timeframe struct {
	StartTime  types.String `tfsdk:"start_time"`
	EndTime    types.String `tfsdk:"end_time"`
	DaysInWeek types.Set    `tfsdk:"days_in_week"`
	TimeZone   types.String `tfsdk:"time_zone"`
}

type Trigger added in v0.2.2

type Trigger struct {
	Type      types.String `tfsdk:"type"`
	Timeframe *Timeframe   `tfsdk:"timeframe"`
}

Jump to

Keyboard shortcuts

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