Documentation ¶
Index ¶
- type Condition
- type ConditionAttributes
- func (c ConditionAttributes) InternalRef() (terra.Reference, error)
- func (c ConditionAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (c ConditionAttributes) InternalWithRef(ref terra.Reference) ConditionAttributes
- func (c ConditionAttributes) Test() terra.StringValue
- func (c ConditionAttributes) Values() terra.ListValue[terra.StringValue]
- func (c ConditionAttributes) Variable() terra.StringValue
- type ConditionState
- type NotPrincipals
- type NotPrincipalsAttributes
- func (np NotPrincipalsAttributes) Identifiers() terra.SetValue[terra.StringValue]
- func (np NotPrincipalsAttributes) InternalRef() (terra.Reference, error)
- func (np NotPrincipalsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (np NotPrincipalsAttributes) InternalWithRef(ref terra.Reference) NotPrincipalsAttributes
- func (np NotPrincipalsAttributes) Type() terra.StringValue
- type NotPrincipalsState
- type Principals
- type PrincipalsAttributes
- func (p PrincipalsAttributes) Identifiers() terra.SetValue[terra.StringValue]
- func (p PrincipalsAttributes) InternalRef() (terra.Reference, error)
- func (p PrincipalsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (p PrincipalsAttributes) InternalWithRef(ref terra.Reference) PrincipalsAttributes
- func (p PrincipalsAttributes) Type() terra.StringValue
- type PrincipalsState
- type Statement
- type StatementAttributes
- func (s StatementAttributes) Actions() terra.SetValue[terra.StringValue]
- func (s StatementAttributes) Condition() terra.SetValue[ConditionAttributes]
- func (s StatementAttributes) Effect() terra.StringValue
- func (s StatementAttributes) InternalRef() (terra.Reference, error)
- func (s StatementAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (s StatementAttributes) InternalWithRef(ref terra.Reference) StatementAttributes
- func (s StatementAttributes) NotActions() terra.SetValue[terra.StringValue]
- func (s StatementAttributes) NotPrincipals() terra.SetValue[NotPrincipalsAttributes]
- func (s StatementAttributes) NotResources() terra.SetValue[terra.StringValue]
- func (s StatementAttributes) Principals() terra.SetValue[PrincipalsAttributes]
- func (s StatementAttributes) Resources() terra.SetValue[terra.StringValue]
- func (s StatementAttributes) Sid() terra.StringValue
- type StatementState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition struct { // Test: string, required Test terra.StringValue `hcl:"test,attr" validate:"required"` // Values: list of string, required Values terra.ListValue[terra.StringValue] `hcl:"values,attr" validate:"required"` // Variable: string, required Variable terra.StringValue `hcl:"variable,attr" validate:"required"` }
type ConditionAttributes ¶
type ConditionAttributes struct {
// contains filtered or unexported fields
}
func (ConditionAttributes) InternalRef ¶
func (c ConditionAttributes) InternalRef() (terra.Reference, error)
func (ConditionAttributes) InternalTokens ¶
func (c ConditionAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ConditionAttributes) InternalWithRef ¶
func (c ConditionAttributes) InternalWithRef(ref terra.Reference) ConditionAttributes
func (ConditionAttributes) Test ¶
func (c ConditionAttributes) Test() terra.StringValue
func (ConditionAttributes) Values ¶
func (c ConditionAttributes) Values() terra.ListValue[terra.StringValue]
func (ConditionAttributes) Variable ¶
func (c ConditionAttributes) Variable() terra.StringValue
type ConditionState ¶
type NotPrincipals ¶
type NotPrincipals struct { // Identifiers: set of string, required Identifiers terra.SetValue[terra.StringValue] `hcl:"identifiers,attr" validate:"required"` // Type: string, required Type terra.StringValue `hcl:"type,attr" validate:"required"` }
type NotPrincipalsAttributes ¶
type NotPrincipalsAttributes struct {
// contains filtered or unexported fields
}
func (NotPrincipalsAttributes) Identifiers ¶
func (np NotPrincipalsAttributes) Identifiers() terra.SetValue[terra.StringValue]
func (NotPrincipalsAttributes) InternalRef ¶
func (np NotPrincipalsAttributes) InternalRef() (terra.Reference, error)
func (NotPrincipalsAttributes) InternalTokens ¶
func (np NotPrincipalsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (NotPrincipalsAttributes) InternalWithRef ¶
func (np NotPrincipalsAttributes) InternalWithRef(ref terra.Reference) NotPrincipalsAttributes
func (NotPrincipalsAttributes) Type ¶
func (np NotPrincipalsAttributes) Type() terra.StringValue
type NotPrincipalsState ¶
type Principals ¶
type Principals struct { // Identifiers: set of string, required Identifiers terra.SetValue[terra.StringValue] `hcl:"identifiers,attr" validate:"required"` // Type: string, required Type terra.StringValue `hcl:"type,attr" validate:"required"` }
type PrincipalsAttributes ¶
type PrincipalsAttributes struct {
// contains filtered or unexported fields
}
func (PrincipalsAttributes) Identifiers ¶
func (p PrincipalsAttributes) Identifiers() terra.SetValue[terra.StringValue]
func (PrincipalsAttributes) InternalRef ¶
func (p PrincipalsAttributes) InternalRef() (terra.Reference, error)
func (PrincipalsAttributes) InternalTokens ¶
func (p PrincipalsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (PrincipalsAttributes) InternalWithRef ¶
func (p PrincipalsAttributes) InternalWithRef(ref terra.Reference) PrincipalsAttributes
func (PrincipalsAttributes) Type ¶
func (p PrincipalsAttributes) Type() terra.StringValue
type PrincipalsState ¶
type Statement ¶
type Statement struct { // Actions: set of string, optional Actions terra.SetValue[terra.StringValue] `hcl:"actions,attr"` // Effect: string, optional Effect terra.StringValue `hcl:"effect,attr"` // NotActions: set of string, optional NotActions terra.SetValue[terra.StringValue] `hcl:"not_actions,attr"` // NotResources: set of string, optional NotResources terra.SetValue[terra.StringValue] `hcl:"not_resources,attr"` // Resources: set of string, optional Resources terra.SetValue[terra.StringValue] `hcl:"resources,attr"` // Sid: string, optional Sid terra.StringValue `hcl:"sid,attr"` // Condition: min=0 Condition []Condition `hcl:"condition,block" validate:"min=0"` // NotPrincipals: min=0 NotPrincipals []NotPrincipals `hcl:"not_principals,block" validate:"min=0"` // Principals: min=0 Principals []Principals `hcl:"principals,block" validate:"min=0"` }
type StatementAttributes ¶
type StatementAttributes struct {
// contains filtered or unexported fields
}
func (StatementAttributes) Actions ¶
func (s StatementAttributes) Actions() terra.SetValue[terra.StringValue]
func (StatementAttributes) Condition ¶
func (s StatementAttributes) Condition() terra.SetValue[ConditionAttributes]
func (StatementAttributes) Effect ¶
func (s StatementAttributes) Effect() terra.StringValue
func (StatementAttributes) InternalRef ¶
func (s StatementAttributes) InternalRef() (terra.Reference, error)
func (StatementAttributes) InternalTokens ¶
func (s StatementAttributes) InternalTokens() (hclwrite.Tokens, error)
func (StatementAttributes) InternalWithRef ¶
func (s StatementAttributes) InternalWithRef(ref terra.Reference) StatementAttributes
func (StatementAttributes) NotActions ¶
func (s StatementAttributes) NotActions() terra.SetValue[terra.StringValue]
func (StatementAttributes) NotPrincipals ¶
func (s StatementAttributes) NotPrincipals() terra.SetValue[NotPrincipalsAttributes]
func (StatementAttributes) NotResources ¶
func (s StatementAttributes) NotResources() terra.SetValue[terra.StringValue]
func (StatementAttributes) Principals ¶
func (s StatementAttributes) Principals() terra.SetValue[PrincipalsAttributes]
func (StatementAttributes) Resources ¶
func (s StatementAttributes) Resources() terra.SetValue[terra.StringValue]
func (StatementAttributes) Sid ¶
func (s StatementAttributes) Sid() terra.StringValue
type StatementState ¶
type StatementState struct { Actions []string `json:"actions"` Effect string `json:"effect"` NotActions []string `json:"not_actions"` NotResources []string `json:"not_resources"` Resources []string `json:"resources"` Sid string `json:"sid"` Condition []ConditionState `json:"condition"` NotPrincipals []NotPrincipalsState `json:"not_principals"` Principals []PrincipalsState `json:"principals"` }
Click to show internal directories.
Click to hide internal directories.