dataiamprincipalpolicysimulation

package
v0.0.0-...-964ba77 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Values: set of string, required
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr" validate:"required"`
}

type ContextAttributes

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

func (ContextAttributes) InternalRef

func (c ContextAttributes) InternalRef() (terra.Reference, error)

func (ContextAttributes) InternalTokens

func (c ContextAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ContextAttributes) InternalWithRef

func (c ContextAttributes) InternalWithRef(ref terra.Reference) ContextAttributes

func (ContextAttributes) Key

func (ContextAttributes) Type

func (ContextAttributes) Values

type ContextState

type ContextState struct {
	Key    string   `json:"key"`
	Type   string   `json:"type"`
	Values []string `json:"values"`
}

type MatchedStatements

type MatchedStatements struct{}

type MatchedStatementsAttributes

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

func (MatchedStatementsAttributes) InternalRef

func (ms MatchedStatementsAttributes) InternalRef() (terra.Reference, error)

func (MatchedStatementsAttributes) InternalTokens

func (ms MatchedStatementsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MatchedStatementsAttributes) InternalWithRef

func (MatchedStatementsAttributes) SourcePolicyId

func (ms MatchedStatementsAttributes) SourcePolicyId() terra.StringValue

func (MatchedStatementsAttributes) SourcePolicyType

func (ms MatchedStatementsAttributes) SourcePolicyType() terra.StringValue

type MatchedStatementsState

type MatchedStatementsState struct {
	SourcePolicyId   string `json:"source_policy_id"`
	SourcePolicyType string `json:"source_policy_type"`
}

type Results

type Results struct {
	// MatchedStatements: min=0
	MatchedStatements []MatchedStatements `hcl:"matched_statements,block" validate:"min=0"`
}

type ResultsAttributes

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

func (ResultsAttributes) ActionName

func (r ResultsAttributes) ActionName() terra.StringValue

func (ResultsAttributes) Allowed

func (r ResultsAttributes) Allowed() terra.BoolValue

func (ResultsAttributes) Decision

func (r ResultsAttributes) Decision() terra.StringValue

func (ResultsAttributes) DecisionDetails

func (r ResultsAttributes) DecisionDetails() terra.MapValue[terra.StringValue]

func (ResultsAttributes) InternalRef

func (r ResultsAttributes) InternalRef() (terra.Reference, error)

func (ResultsAttributes) InternalTokens

func (r ResultsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ResultsAttributes) InternalWithRef

func (r ResultsAttributes) InternalWithRef(ref terra.Reference) ResultsAttributes

func (ResultsAttributes) MatchedStatements

func (ResultsAttributes) MissingContextKeys

func (r ResultsAttributes) MissingContextKeys() terra.SetValue[terra.StringValue]

func (ResultsAttributes) ResourceArn

func (r ResultsAttributes) ResourceArn() terra.StringValue

type ResultsState

type ResultsState struct {
	ActionName         string                   `json:"action_name"`
	Allowed            bool                     `json:"allowed"`
	Decision           string                   `json:"decision"`
	DecisionDetails    map[string]string        `json:"decision_details"`
	MissingContextKeys []string                 `json:"missing_context_keys"`
	ResourceArn        string                   `json:"resource_arn"`
	MatchedStatements  []MatchedStatementsState `json:"matched_statements"`
}

Jump to

Keyboard shortcuts

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