dataiampolicydocument

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 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 (ConditionAttributes) Values

func (ConditionAttributes) Variable

func (c ConditionAttributes) Variable() terra.StringValue

type ConditionState

type ConditionState struct {
	Test     string   `json:"test"`
	Values   []string `json:"values"`
	Variable string   `json:"variable"`
}

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 (NotPrincipalsAttributes) InternalRef

func (np NotPrincipalsAttributes) InternalRef() (terra.Reference, error)

func (NotPrincipalsAttributes) InternalTokens

func (np NotPrincipalsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NotPrincipalsAttributes) InternalWithRef

func (NotPrincipalsAttributes) Type

type NotPrincipalsState

type NotPrincipalsState struct {
	Identifiers []string `json:"identifiers"`
	Type        string   `json:"type"`
}

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 (PrincipalsAttributes) InternalRef

func (p PrincipalsAttributes) InternalRef() (terra.Reference, error)

func (PrincipalsAttributes) InternalTokens

func (p PrincipalsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PrincipalsAttributes) InternalWithRef

func (PrincipalsAttributes) Type

type PrincipalsState

type PrincipalsState struct {
	Identifiers []string `json:"identifiers"`
	Type        string   `json:"type"`
}

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 (StatementAttributes) Condition

func (StatementAttributes) Effect

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 (StatementAttributes) NotPrincipals

func (StatementAttributes) NotResources

func (StatementAttributes) Principals

func (StatementAttributes) Resources

func (StatementAttributes) Sid

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"`
}

Jump to

Keyboard shortcuts

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