aws_iam_principal_policy_simulation

package
v0.0.0-...-4deecce 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 {
	// ActionNames: set of string, required
	ActionNames terra.SetValue[terra.StringValue] `hcl:"action_names,attr" validate:"required"`
	// AdditionalPoliciesJson: set of string, optional
	AdditionalPoliciesJson terra.SetValue[terra.StringValue] `hcl:"additional_policies_json,attr"`
	// CallerArn: string, optional
	CallerArn terra.StringValue `hcl:"caller_arn,attr"`
	// PermissionsBoundaryPoliciesJson: set of string, optional
	PermissionsBoundaryPoliciesJson terra.SetValue[terra.StringValue] `hcl:"permissions_boundary_policies_json,attr"`
	// PolicySourceArn: string, required
	PolicySourceArn terra.StringValue `hcl:"policy_source_arn,attr" validate:"required"`
	// ResourceArns: set of string, optional
	ResourceArns terra.SetValue[terra.StringValue] `hcl:"resource_arns,attr"`
	// ResourceHandlingOption: string, optional
	ResourceHandlingOption terra.StringValue `hcl:"resource_handling_option,attr"`
	// ResourceOwnerAccountId: string, optional
	ResourceOwnerAccountId terra.StringValue `hcl:"resource_owner_account_id,attr"`
	// ResourcePolicyJson: string, optional
	ResourcePolicyJson terra.StringValue `hcl:"resource_policy_json,attr"`
	// Context: min=0
	Context []DataContext `hcl:"context,block" validate:"min=0"`
}

DataArgs contains the configurations for aws_iam_principal_policy_simulation.

type DataContext

type DataContext 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 DataContextAttributes

type DataContextAttributes struct {
	// contains filtered or unexported fields
}

func (DataContextAttributes) InternalRef

func (c DataContextAttributes) InternalRef() (terra.Reference, error)

func (DataContextAttributes) InternalTokens

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

func (DataContextAttributes) InternalWithRef

func (DataContextAttributes) Key

func (DataContextAttributes) Type

func (DataContextAttributes) Values

type DataContextState

type DataContextState struct {
	Key    string   `json:"key"`
	Type   string   `json:"type"`
	Values []string `json:"values"`
}

type DataResultsAttributes

type DataResultsAttributes struct {
	// contains filtered or unexported fields
}

func (DataResultsAttributes) ActionName

func (r DataResultsAttributes) ActionName() terra.StringValue

func (DataResultsAttributes) Allowed

func (DataResultsAttributes) Decision

func (DataResultsAttributes) DecisionDetails

func (r DataResultsAttributes) DecisionDetails() terra.MapValue[terra.StringValue]

func (DataResultsAttributes) InternalRef

func (r DataResultsAttributes) InternalRef() (terra.Reference, error)

func (DataResultsAttributes) InternalTokens

func (r DataResultsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataResultsAttributes) InternalWithRef

func (DataResultsAttributes) MatchedStatements

func (DataResultsAttributes) MissingContextKeys

func (r DataResultsAttributes) MissingContextKeys() terra.SetValue[terra.StringValue]

func (DataResultsAttributes) ResourceArn

func (r DataResultsAttributes) ResourceArn() terra.StringValue

type DataResultsMatchedStatementsAttributes

type DataResultsMatchedStatementsAttributes struct {
	// contains filtered or unexported fields
}

func (DataResultsMatchedStatementsAttributes) InternalRef

func (DataResultsMatchedStatementsAttributes) InternalTokens

func (DataResultsMatchedStatementsAttributes) InternalWithRef

func (DataResultsMatchedStatementsAttributes) SourcePolicyId

func (DataResultsMatchedStatementsAttributes) SourcePolicyType

type DataResultsMatchedStatementsState

type DataResultsMatchedStatementsState struct {
	SourcePolicyId   string `json:"source_policy_id"`
	SourcePolicyType string `json:"source_policy_type"`
}

type DataResultsState

type DataResultsState 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  []DataResultsMatchedStatementsState `json:"matched_statements"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_iam_principal_policy_simulation.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aipps *DataSource) Attributes() dataAwsIamPrincipalPolicySimulationAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (aipps *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aipps *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aipps *DataSource) LocalName() string

LocalName returns the local name for DataSource.

Jump to

Keyboard shortcuts

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