Documentation ¶
Index ¶
- type Context
- type ContextAttributes
- func (c ContextAttributes) InternalRef() (terra.Reference, error)
- func (c ContextAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (c ContextAttributes) InternalWithRef(ref terra.Reference) ContextAttributes
- func (c ContextAttributes) Key() terra.StringValue
- func (c ContextAttributes) Type() terra.StringValue
- func (c ContextAttributes) Values() terra.SetValue[terra.StringValue]
- type ContextState
- type MatchedStatements
- type MatchedStatementsAttributes
- func (ms MatchedStatementsAttributes) InternalRef() (terra.Reference, error)
- func (ms MatchedStatementsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ms MatchedStatementsAttributes) InternalWithRef(ref terra.Reference) MatchedStatementsAttributes
- func (ms MatchedStatementsAttributes) SourcePolicyId() terra.StringValue
- func (ms MatchedStatementsAttributes) SourcePolicyType() terra.StringValue
- type MatchedStatementsState
- type Results
- type ResultsAttributes
- func (r ResultsAttributes) ActionName() terra.StringValue
- func (r ResultsAttributes) Allowed() terra.BoolValue
- func (r ResultsAttributes) Decision() terra.StringValue
- func (r ResultsAttributes) DecisionDetails() terra.MapValue[terra.StringValue]
- func (r ResultsAttributes) InternalRef() (terra.Reference, error)
- func (r ResultsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (r ResultsAttributes) InternalWithRef(ref terra.Reference) ResultsAttributes
- func (r ResultsAttributes) MatchedStatements() terra.SetValue[MatchedStatementsAttributes]
- func (r ResultsAttributes) MissingContextKeys() terra.SetValue[terra.StringValue]
- func (r ResultsAttributes) ResourceArn() terra.StringValue
- type ResultsState
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 (c ContextAttributes) Key() terra.StringValue
func (ContextAttributes) Type ¶
func (c ContextAttributes) Type() terra.StringValue
func (ContextAttributes) Values ¶
func (c ContextAttributes) Values() terra.SetValue[terra.StringValue]
type ContextState ¶
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 (ms MatchedStatementsAttributes) InternalWithRef(ref terra.Reference) MatchedStatementsAttributes
func (MatchedStatementsAttributes) SourcePolicyId ¶
func (ms MatchedStatementsAttributes) SourcePolicyId() terra.StringValue
func (MatchedStatementsAttributes) SourcePolicyType ¶
func (ms MatchedStatementsAttributes) SourcePolicyType() terra.StringValue
type MatchedStatementsState ¶
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 (r ResultsAttributes) MatchedStatements() terra.SetValue[MatchedStatementsAttributes]
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"` }
Click to show internal directories.
Click to hide internal directories.