aws_iam_policy_document

package
v5.45.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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 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

type DataSource struct {
	Name string
	Args DataArgs
}

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

func (DataStatementAttributes) Effect

func (DataStatementAttributes) InternalRef

func (s DataStatementAttributes) InternalRef() (terra.Reference, error)

func (DataStatementAttributes) InternalTokens

func (s DataStatementAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataStatementAttributes) InternalWithRef

func (DataStatementAttributes) NotActions

func (DataStatementAttributes) NotPrincipals

func (DataStatementAttributes) NotResources

func (DataStatementAttributes) Principals

func (DataStatementAttributes) Resources

func (DataStatementAttributes) Sid

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 (DataStatementConditionAttributes) InternalTokens

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

func (DataStatementConditionAttributes) InternalWithRef

func (DataStatementConditionAttributes) Test

func (DataStatementConditionAttributes) Values

func (DataStatementConditionAttributes) Variable

type DataStatementConditionState

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

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

func (DataStatementNotPrincipalsAttributes) InternalTokens

func (DataStatementNotPrincipalsAttributes) InternalWithRef

func (DataStatementNotPrincipalsAttributes) Type

type DataStatementNotPrincipalsState

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

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

func (DataStatementPrincipalsAttributes) InternalTokens

func (DataStatementPrincipalsAttributes) InternalWithRef

func (DataStatementPrincipalsAttributes) Type

type DataStatementPrincipalsState

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

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

Jump to

Keyboard shortcuts

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