Documentation ¶
Index ¶
- type DataArgs
- type DataSource
- type DataStatement
- type DataStatementAttributes
- func (s DataStatementAttributes) Actions() terra.SetValue[terra.StringValue]
- func (s DataStatementAttributes) Condition() terra.SetValue[DataStatementConditionAttributes]
- func (s DataStatementAttributes) Effect() terra.StringValue
- func (s DataStatementAttributes) InternalRef() (terra.Reference, error)
- func (s DataStatementAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (s DataStatementAttributes) InternalWithRef(ref terra.Reference) DataStatementAttributes
- func (s DataStatementAttributes) NotActions() terra.SetValue[terra.StringValue]
- func (s DataStatementAttributes) NotPrincipals() terra.SetValue[DataStatementNotPrincipalsAttributes]
- func (s DataStatementAttributes) NotResources() terra.SetValue[terra.StringValue]
- func (s DataStatementAttributes) Principals() terra.SetValue[DataStatementPrincipalsAttributes]
- func (s DataStatementAttributes) Resources() terra.SetValue[terra.StringValue]
- func (s DataStatementAttributes) Sid() terra.StringValue
- type DataStatementCondition
- type DataStatementConditionAttributes
- func (c DataStatementConditionAttributes) InternalRef() (terra.Reference, error)
- func (c DataStatementConditionAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (c DataStatementConditionAttributes) InternalWithRef(ref terra.Reference) DataStatementConditionAttributes
- func (c DataStatementConditionAttributes) Test() terra.StringValue
- func (c DataStatementConditionAttributes) Values() terra.ListValue[terra.StringValue]
- func (c DataStatementConditionAttributes) Variable() terra.StringValue
- type DataStatementConditionState
- type DataStatementNotPrincipals
- type DataStatementNotPrincipalsAttributes
- func (np DataStatementNotPrincipalsAttributes) Identifiers() terra.SetValue[terra.StringValue]
- func (np DataStatementNotPrincipalsAttributes) InternalRef() (terra.Reference, error)
- func (np DataStatementNotPrincipalsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (np DataStatementNotPrincipalsAttributes) InternalWithRef(ref terra.Reference) DataStatementNotPrincipalsAttributes
- func (np DataStatementNotPrincipalsAttributes) Type() terra.StringValue
- type DataStatementNotPrincipalsState
- type DataStatementPrincipals
- type DataStatementPrincipalsAttributes
- func (p DataStatementPrincipalsAttributes) Identifiers() terra.SetValue[terra.StringValue]
- func (p DataStatementPrincipalsAttributes) InternalRef() (terra.Reference, error)
- func (p DataStatementPrincipalsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (p DataStatementPrincipalsAttributes) InternalWithRef(ref terra.Reference) DataStatementPrincipalsAttributes
- func (p DataStatementPrincipalsAttributes) Type() terra.StringValue
- type DataStatementPrincipalsState
- type DataStatementState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataArgs ¶
type DataArgs struct { // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // OverrideJson: string, optional OverrideJson terra.StringValue `hcl:"override_json,attr"` // OverridePolicyDocuments: list of string, optional OverridePolicyDocuments terra.ListValue[terra.StringValue] `hcl:"override_policy_documents,attr"` // PolicyId: string, optional PolicyId terra.StringValue `hcl:"policy_id,attr"` // SourceJson: string, optional SourceJson terra.StringValue `hcl:"source_json,attr"` // SourcePolicyDocuments: list of string, optional SourcePolicyDocuments terra.ListValue[terra.StringValue] `hcl:"source_policy_documents,attr"` // Version: string, optional Version terra.StringValue `hcl:"version,attr"` // Statement: min=0 Statement []DataStatement `hcl:"statement,block" validate:"min=0"` }
DataArgs contains the configurations for aws_iam_policy_document.
type DataSource ¶
DataSource represents the Terraform data resource aws_iam_policy_document.
func Data ¶
func Data(name string, args DataArgs) *DataSource
Data creates a new instance of DataSource.
func (*DataSource) Attributes ¶
func (aipd *DataSource) Attributes() dataAwsIamPolicyDocumentAttributes
Attributes returns the attributes for DataSource.
func (*DataSource) Configuration ¶
func (aipd *DataSource) Configuration() interface{}
Configuration returns the configuration (args) for DataSource.
func (*DataSource) DataSource ¶
func (aipd *DataSource) DataSource() string
DataSource returns the Terraform object type for DataSource.
func (*DataSource) LocalName ¶
func (aipd *DataSource) LocalName() string
LocalName returns the local name for DataSource.
type DataStatement ¶
type DataStatement 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"` // StatementCondition: min=0 Condition []DataStatementCondition `hcl:"condition,block" validate:"min=0"` // StatementNotPrincipals: min=0 NotPrincipals []DataStatementNotPrincipals `hcl:"not_principals,block" validate:"min=0"` // StatementPrincipals: min=0 Principals []DataStatementPrincipals `hcl:"principals,block" validate:"min=0"` }
type DataStatementAttributes ¶
type DataStatementAttributes struct {
// contains filtered or unexported fields
}
func (DataStatementAttributes) Actions ¶
func (s DataStatementAttributes) Actions() terra.SetValue[terra.StringValue]
func (DataStatementAttributes) Condition ¶
func (s DataStatementAttributes) Condition() terra.SetValue[DataStatementConditionAttributes]
func (DataStatementAttributes) Effect ¶
func (s DataStatementAttributes) Effect() terra.StringValue
func (DataStatementAttributes) InternalRef ¶
func (s DataStatementAttributes) InternalRef() (terra.Reference, error)
func (DataStatementAttributes) InternalTokens ¶
func (s DataStatementAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataStatementAttributes) InternalWithRef ¶
func (s DataStatementAttributes) InternalWithRef(ref terra.Reference) DataStatementAttributes
func (DataStatementAttributes) NotActions ¶
func (s DataStatementAttributes) NotActions() terra.SetValue[terra.StringValue]
func (DataStatementAttributes) NotPrincipals ¶
func (s DataStatementAttributes) NotPrincipals() terra.SetValue[DataStatementNotPrincipalsAttributes]
func (DataStatementAttributes) NotResources ¶
func (s DataStatementAttributes) NotResources() terra.SetValue[terra.StringValue]
func (DataStatementAttributes) Principals ¶
func (s DataStatementAttributes) Principals() terra.SetValue[DataStatementPrincipalsAttributes]
func (DataStatementAttributes) Resources ¶
func (s DataStatementAttributes) Resources() terra.SetValue[terra.StringValue]
func (DataStatementAttributes) Sid ¶
func (s DataStatementAttributes) Sid() terra.StringValue
type DataStatementCondition ¶
type DataStatementCondition 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 DataStatementConditionAttributes ¶
type DataStatementConditionAttributes struct {
// contains filtered or unexported fields
}
func (DataStatementConditionAttributes) InternalRef ¶
func (c DataStatementConditionAttributes) InternalRef() (terra.Reference, error)
func (DataStatementConditionAttributes) InternalTokens ¶
func (c DataStatementConditionAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataStatementConditionAttributes) InternalWithRef ¶
func (c DataStatementConditionAttributes) InternalWithRef(ref terra.Reference) DataStatementConditionAttributes
func (DataStatementConditionAttributes) Test ¶
func (c DataStatementConditionAttributes) Test() terra.StringValue
func (DataStatementConditionAttributes) Values ¶
func (c DataStatementConditionAttributes) Values() terra.ListValue[terra.StringValue]
func (DataStatementConditionAttributes) Variable ¶
func (c DataStatementConditionAttributes) Variable() terra.StringValue
type DataStatementNotPrincipals ¶
type DataStatementNotPrincipals 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 DataStatementNotPrincipalsAttributes ¶
type DataStatementNotPrincipalsAttributes struct {
// contains filtered or unexported fields
}
func (DataStatementNotPrincipalsAttributes) Identifiers ¶
func (np DataStatementNotPrincipalsAttributes) Identifiers() terra.SetValue[terra.StringValue]
func (DataStatementNotPrincipalsAttributes) InternalRef ¶
func (np DataStatementNotPrincipalsAttributes) InternalRef() (terra.Reference, error)
func (DataStatementNotPrincipalsAttributes) InternalTokens ¶
func (np DataStatementNotPrincipalsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataStatementNotPrincipalsAttributes) InternalWithRef ¶
func (np DataStatementNotPrincipalsAttributes) InternalWithRef(ref terra.Reference) DataStatementNotPrincipalsAttributes
func (DataStatementNotPrincipalsAttributes) Type ¶
func (np DataStatementNotPrincipalsAttributes) Type() terra.StringValue
type DataStatementPrincipals ¶
type DataStatementPrincipals 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 DataStatementPrincipalsAttributes ¶
type DataStatementPrincipalsAttributes struct {
// contains filtered or unexported fields
}
func (DataStatementPrincipalsAttributes) Identifiers ¶
func (p DataStatementPrincipalsAttributes) Identifiers() terra.SetValue[terra.StringValue]
func (DataStatementPrincipalsAttributes) InternalRef ¶
func (p DataStatementPrincipalsAttributes) InternalRef() (terra.Reference, error)
func (DataStatementPrincipalsAttributes) InternalTokens ¶
func (p DataStatementPrincipalsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataStatementPrincipalsAttributes) InternalWithRef ¶
func (p DataStatementPrincipalsAttributes) InternalWithRef(ref terra.Reference) DataStatementPrincipalsAttributes
func (DataStatementPrincipalsAttributes) Type ¶
func (p DataStatementPrincipalsAttributes) Type() terra.StringValue
type DataStatementState ¶
type DataStatementState 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 []DataStatementConditionState `json:"condition"` NotPrincipals []DataStatementNotPrincipalsState `json:"not_principals"` Principals []DataStatementPrincipalsState `json:"principals"` }
Click to show internal directories.
Click to hide internal directories.