azurerm_policy_set_definition

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DisplayName: string, required
	DisplayName terra.StringValue `hcl:"display_name,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ManagementGroupId: string, optional
	ManagementGroupId terra.StringValue `hcl:"management_group_id,attr"`
	// Metadata: string, optional
	Metadata terra.StringValue `hcl:"metadata,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Parameters: string, optional
	Parameters terra.StringValue `hcl:"parameters,attr"`
	// PolicyType: string, required
	PolicyType terra.StringValue `hcl:"policy_type,attr" validate:"required"`
	// PolicyDefinitionGroup: min=0
	PolicyDefinitionGroup []PolicyDefinitionGroup `hcl:"policy_definition_group,block" validate:"min=0"`
	// PolicyDefinitionReference: min=1
	PolicyDefinitionReference []PolicyDefinitionReference `hcl:"policy_definition_reference,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_policy_set_definition.

type DataArgs

type DataArgs struct {
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ManagementGroupName: string, optional
	ManagementGroupName terra.StringValue `hcl:"management_group_name,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for azurerm_policy_set_definition.

type DataPolicyDefinitionGroupAttributes

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

func (DataPolicyDefinitionGroupAttributes) AdditionalMetadataResourceId

func (pdg DataPolicyDefinitionGroupAttributes) AdditionalMetadataResourceId() terra.StringValue

func (DataPolicyDefinitionGroupAttributes) Category

func (DataPolicyDefinitionGroupAttributes) Description

func (DataPolicyDefinitionGroupAttributes) DisplayName

func (DataPolicyDefinitionGroupAttributes) InternalRef

func (DataPolicyDefinitionGroupAttributes) InternalTokens

func (pdg DataPolicyDefinitionGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataPolicyDefinitionGroupAttributes) InternalWithRef

func (DataPolicyDefinitionGroupAttributes) Name

type DataPolicyDefinitionGroupState

type DataPolicyDefinitionGroupState struct {
	AdditionalMetadataResourceId string `json:"additional_metadata_resource_id"`
	Category                     string `json:"category"`
	Description                  string `json:"description"`
	DisplayName                  string `json:"display_name"`
	Name                         string `json:"name"`
}

type DataPolicyDefinitionReferenceAttributes

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

func (DataPolicyDefinitionReferenceAttributes) InternalRef

func (DataPolicyDefinitionReferenceAttributes) InternalTokens

func (DataPolicyDefinitionReferenceAttributes) InternalWithRef

func (DataPolicyDefinitionReferenceAttributes) ParameterValues

func (DataPolicyDefinitionReferenceAttributes) Parameters

func (DataPolicyDefinitionReferenceAttributes) PolicyDefinitionId

func (DataPolicyDefinitionReferenceAttributes) PolicyGroupNames

func (DataPolicyDefinitionReferenceAttributes) ReferenceId

type DataPolicyDefinitionReferenceState

type DataPolicyDefinitionReferenceState struct {
	ParameterValues    string            `json:"parameter_values"`
	Parameters         map[string]string `json:"parameters"`
	PolicyDefinitionId string            `json:"policy_definition_id"`
	PolicyGroupNames   []string          `json:"policy_group_names"`
	ReferenceId        string            `json:"reference_id"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource azurerm_policy_set_definition.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (apsd *DataSource) Attributes() dataAzurermPolicySetDefinitionAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (apsd *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (apsd *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataTimeouts

type DataTimeouts struct {
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
}

type DataTimeoutsAttributes

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

func (DataTimeoutsAttributes) InternalRef

func (t DataTimeoutsAttributes) InternalRef() (terra.Reference, error)

func (DataTimeoutsAttributes) InternalTokens

func (t DataTimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataTimeoutsAttributes) InternalWithRef

func (DataTimeoutsAttributes) Read

type DataTimeoutsState

type DataTimeoutsState struct {
	Read string `json:"read"`
}

type PolicyDefinitionGroup

type PolicyDefinitionGroup struct {
	// AdditionalMetadataResourceId: string, optional
	AdditionalMetadataResourceId terra.StringValue `hcl:"additional_metadata_resource_id,attr"`
	// Category: string, optional
	Category terra.StringValue `hcl:"category,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type PolicyDefinitionGroupAttributes

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

func (PolicyDefinitionGroupAttributes) AdditionalMetadataResourceId

func (pdg PolicyDefinitionGroupAttributes) AdditionalMetadataResourceId() terra.StringValue

func (PolicyDefinitionGroupAttributes) Category

func (PolicyDefinitionGroupAttributes) Description

func (PolicyDefinitionGroupAttributes) DisplayName

func (PolicyDefinitionGroupAttributes) InternalRef

func (PolicyDefinitionGroupAttributes) InternalTokens

func (pdg PolicyDefinitionGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PolicyDefinitionGroupAttributes) InternalWithRef

func (PolicyDefinitionGroupAttributes) Name

type PolicyDefinitionGroupState

type PolicyDefinitionGroupState struct {
	AdditionalMetadataResourceId string `json:"additional_metadata_resource_id"`
	Category                     string `json:"category"`
	Description                  string `json:"description"`
	DisplayName                  string `json:"display_name"`
	Name                         string `json:"name"`
}

type PolicyDefinitionReference

type PolicyDefinitionReference struct {
	// ParameterValues: string, optional
	ParameterValues terra.StringValue `hcl:"parameter_values,attr"`
	// PolicyDefinitionId: string, required
	PolicyDefinitionId terra.StringValue `hcl:"policy_definition_id,attr" validate:"required"`
	// PolicyGroupNames: set of string, optional
	PolicyGroupNames terra.SetValue[terra.StringValue] `hcl:"policy_group_names,attr"`
	// ReferenceId: string, optional
	ReferenceId terra.StringValue `hcl:"reference_id,attr"`
}

type PolicyDefinitionReferenceAttributes

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

func (PolicyDefinitionReferenceAttributes) InternalRef

func (PolicyDefinitionReferenceAttributes) InternalTokens

func (pdr PolicyDefinitionReferenceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PolicyDefinitionReferenceAttributes) InternalWithRef

func (PolicyDefinitionReferenceAttributes) ParameterValues

func (PolicyDefinitionReferenceAttributes) PolicyDefinitionId

func (pdr PolicyDefinitionReferenceAttributes) PolicyDefinitionId() terra.StringValue

func (PolicyDefinitionReferenceAttributes) PolicyGroupNames

func (PolicyDefinitionReferenceAttributes) ReferenceId

type PolicyDefinitionReferenceState

type PolicyDefinitionReferenceState struct {
	ParameterValues    string   `json:"parameter_values"`
	PolicyDefinitionId string   `json:"policy_definition_id"`
	PolicyGroupNames   []string `json:"policy_group_names"`
	ReferenceId        string   `json:"reference_id"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource azurerm_policy_set_definition.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (apsd *Resource) Attributes() azurermPolicySetDefinitionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (apsd *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (apsd *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (apsd *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (apsd *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (apsd *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (apsd *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (apsd *Resource) State() (*azurermPolicySetDefinitionState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (apsd *Resource) StateMust() *azurermPolicySetDefinitionState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (apsd *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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