azurerm_lighthouse_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"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// LighthouseDefinitionId: string, optional
	LighthouseDefinitionId terra.StringValue `hcl:"lighthouse_definition_id,attr"`
	// ManagingTenantId: string, required
	ManagingTenantId terra.StringValue `hcl:"managing_tenant_id,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Scope: string, required
	Scope terra.StringValue `hcl:"scope,attr" validate:"required"`
	// Authorization: min=1
	Authorization []Authorization `hcl:"authorization,block" validate:"min=1"`
	// EligibleAuthorization: min=0
	EligibleAuthorization []EligibleAuthorization `hcl:"eligible_authorization,block" validate:"min=0"`
	// Plan: optional
	Plan *Plan `hcl:"plan,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_lighthouse_definition.

type Authorization

type Authorization struct {
	// DelegatedRoleDefinitionIds: set of string, optional
	DelegatedRoleDefinitionIds terra.SetValue[terra.StringValue] `hcl:"delegated_role_definition_ids,attr"`
	// PrincipalDisplayName: string, optional
	PrincipalDisplayName terra.StringValue `hcl:"principal_display_name,attr"`
	// PrincipalId: string, required
	PrincipalId terra.StringValue `hcl:"principal_id,attr" validate:"required"`
	// RoleDefinitionId: string, required
	RoleDefinitionId terra.StringValue `hcl:"role_definition_id,attr" validate:"required"`
}

type AuthorizationAttributes

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

func (AuthorizationAttributes) DelegatedRoleDefinitionIds

func (a AuthorizationAttributes) DelegatedRoleDefinitionIds() terra.SetValue[terra.StringValue]

func (AuthorizationAttributes) InternalRef

func (a AuthorizationAttributes) InternalRef() (terra.Reference, error)

func (AuthorizationAttributes) InternalTokens

func (a AuthorizationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AuthorizationAttributes) InternalWithRef

func (AuthorizationAttributes) PrincipalDisplayName

func (a AuthorizationAttributes) PrincipalDisplayName() terra.StringValue

func (AuthorizationAttributes) PrincipalId

func (a AuthorizationAttributes) PrincipalId() terra.StringValue

func (AuthorizationAttributes) RoleDefinitionId

func (a AuthorizationAttributes) RoleDefinitionId() terra.StringValue

type AuthorizationState

type AuthorizationState struct {
	DelegatedRoleDefinitionIds []string `json:"delegated_role_definition_ids"`
	PrincipalDisplayName       string   `json:"principal_display_name"`
	PrincipalId                string   `json:"principal_id"`
	RoleDefinitionId           string   `json:"role_definition_id"`
}

type EligibleAuthorization

type EligibleAuthorization struct {
	// PrincipalDisplayName: string, optional
	PrincipalDisplayName terra.StringValue `hcl:"principal_display_name,attr"`
	// PrincipalId: string, required
	PrincipalId terra.StringValue `hcl:"principal_id,attr" validate:"required"`
	// RoleDefinitionId: string, required
	RoleDefinitionId terra.StringValue `hcl:"role_definition_id,attr" validate:"required"`
	// EligibleAuthorizationJustInTimeAccessPolicy: optional
	JustInTimeAccessPolicy *EligibleAuthorizationJustInTimeAccessPolicy `hcl:"just_in_time_access_policy,block"`
}

type EligibleAuthorizationAttributes

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

func (EligibleAuthorizationAttributes) InternalRef

func (EligibleAuthorizationAttributes) InternalTokens

func (ea EligibleAuthorizationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EligibleAuthorizationAttributes) InternalWithRef

func (EligibleAuthorizationAttributes) JustInTimeAccessPolicy

func (EligibleAuthorizationAttributes) PrincipalDisplayName

func (ea EligibleAuthorizationAttributes) PrincipalDisplayName() terra.StringValue

func (EligibleAuthorizationAttributes) PrincipalId

func (EligibleAuthorizationAttributes) RoleDefinitionId

func (ea EligibleAuthorizationAttributes) RoleDefinitionId() terra.StringValue

type EligibleAuthorizationJustInTimeAccessPolicy

type EligibleAuthorizationJustInTimeAccessPolicy struct {
	// MaximumActivationDuration: string, optional
	MaximumActivationDuration terra.StringValue `hcl:"maximum_activation_duration,attr"`
	// MultiFactorAuthProvider: string, optional
	MultiFactorAuthProvider terra.StringValue `hcl:"multi_factor_auth_provider,attr"`
	// EligibleAuthorizationJustInTimeAccessPolicyApprover: min=0
	Approver []EligibleAuthorizationJustInTimeAccessPolicyApprover `hcl:"approver,block" validate:"min=0"`
}

type EligibleAuthorizationJustInTimeAccessPolicyApprover

type EligibleAuthorizationJustInTimeAccessPolicyApprover struct {
	// PrincipalDisplayName: string, optional
	PrincipalDisplayName terra.StringValue `hcl:"principal_display_name,attr"`
	// PrincipalId: string, required
	PrincipalId terra.StringValue `hcl:"principal_id,attr" validate:"required"`
}

type EligibleAuthorizationJustInTimeAccessPolicyApproverAttributes

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

func (EligibleAuthorizationJustInTimeAccessPolicyApproverAttributes) InternalRef

func (EligibleAuthorizationJustInTimeAccessPolicyApproverAttributes) InternalTokens

func (EligibleAuthorizationJustInTimeAccessPolicyApproverAttributes) InternalWithRef

func (EligibleAuthorizationJustInTimeAccessPolicyApproverAttributes) PrincipalDisplayName

func (EligibleAuthorizationJustInTimeAccessPolicyApproverAttributes) PrincipalId

type EligibleAuthorizationJustInTimeAccessPolicyApproverState

type EligibleAuthorizationJustInTimeAccessPolicyApproverState struct {
	PrincipalDisplayName string `json:"principal_display_name"`
	PrincipalId          string `json:"principal_id"`
}

type EligibleAuthorizationJustInTimeAccessPolicyAttributes

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

func (EligibleAuthorizationJustInTimeAccessPolicyAttributes) Approver

func (EligibleAuthorizationJustInTimeAccessPolicyAttributes) InternalRef

func (EligibleAuthorizationJustInTimeAccessPolicyAttributes) InternalTokens

func (EligibleAuthorizationJustInTimeAccessPolicyAttributes) InternalWithRef

func (EligibleAuthorizationJustInTimeAccessPolicyAttributes) MaximumActivationDuration

func (EligibleAuthorizationJustInTimeAccessPolicyAttributes) MultiFactorAuthProvider

type EligibleAuthorizationJustInTimeAccessPolicyState

type EligibleAuthorizationJustInTimeAccessPolicyState struct {
	MaximumActivationDuration string                                                     `json:"maximum_activation_duration"`
	MultiFactorAuthProvider   string                                                     `json:"multi_factor_auth_provider"`
	Approver                  []EligibleAuthorizationJustInTimeAccessPolicyApproverState `json:"approver"`
}

type EligibleAuthorizationState

type EligibleAuthorizationState struct {
	PrincipalDisplayName   string                                             `json:"principal_display_name"`
	PrincipalId            string                                             `json:"principal_id"`
	RoleDefinitionId       string                                             `json:"role_definition_id"`
	JustInTimeAccessPolicy []EligibleAuthorizationJustInTimeAccessPolicyState `json:"just_in_time_access_policy"`
}

type Plan

type Plan struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Product: string, required
	Product terra.StringValue `hcl:"product,attr" validate:"required"`
	// Publisher: string, required
	Publisher terra.StringValue `hcl:"publisher,attr" validate:"required"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
}

type PlanAttributes

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

func (PlanAttributes) InternalRef

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

func (PlanAttributes) InternalTokens

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

func (PlanAttributes) InternalWithRef

func (p PlanAttributes) InternalWithRef(ref terra.Reference) PlanAttributes

func (PlanAttributes) Name

func (p PlanAttributes) Name() terra.StringValue

func (PlanAttributes) Product

func (p PlanAttributes) Product() terra.StringValue

func (PlanAttributes) Publisher

func (p PlanAttributes) Publisher() terra.StringValue

func (PlanAttributes) Version

func (p PlanAttributes) Version() terra.StringValue

type PlanState

type PlanState struct {
	Name      string `json:"name"`
	Product   string `json:"product"`
	Publisher string `json:"publisher"`
	Version   string `json:"version"`
}

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_lighthouse_definition.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ald *Resource) Attributes() azurermLighthouseDefinitionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ald *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ald *Resource) State() (*azurermLighthouseDefinitionState, bool)

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

func (*Resource) StateMust

func (ald *Resource) StateMust() *azurermLighthouseDefinitionState

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

func (*Resource) Type

func (ald *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