google_scc_organization_custom_module

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 {
	// DisplayName: string, required
	DisplayName terra.StringValue `hcl:"display_name,attr" validate:"required"`
	// EnablementState: string, required
	EnablementState terra.StringValue `hcl:"enablement_state,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Organization: string, required
	Organization terra.StringValue `hcl:"organization,attr" validate:"required"`
	// CustomConfig: required
	CustomConfig *CustomConfig `hcl:"custom_config,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_scc_organization_custom_module.

type CustomConfig

type CustomConfig struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Recommendation: string, required
	Recommendation terra.StringValue `hcl:"recommendation,attr" validate:"required"`
	// Severity: string, required
	Severity terra.StringValue `hcl:"severity,attr" validate:"required"`
	// CustomConfigCustomOutput: optional
	CustomOutput *CustomConfigCustomOutput `hcl:"custom_output,block"`
	// CustomConfigPredicate: required
	Predicate *CustomConfigPredicate `hcl:"predicate,block" validate:"required"`
	// CustomConfigResourceSelector: required
	ResourceSelector *CustomConfigResourceSelector `hcl:"resource_selector,block" validate:"required"`
}

type CustomConfigAttributes

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

func (CustomConfigAttributes) CustomOutput

func (CustomConfigAttributes) Description

func (cc CustomConfigAttributes) Description() terra.StringValue

func (CustomConfigAttributes) InternalRef

func (cc CustomConfigAttributes) InternalRef() (terra.Reference, error)

func (CustomConfigAttributes) InternalTokens

func (cc CustomConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomConfigAttributes) InternalWithRef

func (CustomConfigAttributes) Predicate

func (CustomConfigAttributes) Recommendation

func (cc CustomConfigAttributes) Recommendation() terra.StringValue

func (CustomConfigAttributes) ResourceSelector

func (CustomConfigAttributes) Severity

type CustomConfigCustomOutput

type CustomConfigCustomOutput struct {
	// CustomConfigCustomOutputProperties: min=0
	Properties []CustomConfigCustomOutputProperties `hcl:"properties,block" validate:"min=0"`
}

type CustomConfigCustomOutputAttributes

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

func (CustomConfigCustomOutputAttributes) InternalRef

func (CustomConfigCustomOutputAttributes) InternalTokens

func (CustomConfigCustomOutputAttributes) InternalWithRef

func (CustomConfigCustomOutputAttributes) Properties

type CustomConfigCustomOutputProperties

type CustomConfigCustomOutputProperties struct {
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// CustomConfigCustomOutputPropertiesValueExpression: optional
	ValueExpression *CustomConfigCustomOutputPropertiesValueExpression `hcl:"value_expression,block"`
}

type CustomConfigCustomOutputPropertiesAttributes

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

func (CustomConfigCustomOutputPropertiesAttributes) InternalRef

func (CustomConfigCustomOutputPropertiesAttributes) InternalTokens

func (CustomConfigCustomOutputPropertiesAttributes) InternalWithRef

func (CustomConfigCustomOutputPropertiesAttributes) Name

type CustomConfigCustomOutputPropertiesState

type CustomConfigCustomOutputPropertiesState struct {
	Name            string                                                   `json:"name"`
	ValueExpression []CustomConfigCustomOutputPropertiesValueExpressionState `json:"value_expression"`
}

type CustomConfigCustomOutputPropertiesValueExpression

type CustomConfigCustomOutputPropertiesValueExpression struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Expression: string, required
	Expression terra.StringValue `hcl:"expression,attr" validate:"required"`
	// Location: string, optional
	Location terra.StringValue `hcl:"location,attr"`
	// Title: string, optional
	Title terra.StringValue `hcl:"title,attr"`
}

type CustomConfigCustomOutputPropertiesValueExpressionAttributes

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

func (CustomConfigCustomOutputPropertiesValueExpressionAttributes) Description

func (CustomConfigCustomOutputPropertiesValueExpressionAttributes) Expression

func (CustomConfigCustomOutputPropertiesValueExpressionAttributes) InternalRef

func (CustomConfigCustomOutputPropertiesValueExpressionAttributes) InternalTokens

func (CustomConfigCustomOutputPropertiesValueExpressionAttributes) InternalWithRef

func (CustomConfigCustomOutputPropertiesValueExpressionAttributes) Location

func (CustomConfigCustomOutputPropertiesValueExpressionAttributes) Title

type CustomConfigCustomOutputPropertiesValueExpressionState

type CustomConfigCustomOutputPropertiesValueExpressionState struct {
	Description string `json:"description"`
	Expression  string `json:"expression"`
	Location    string `json:"location"`
	Title       string `json:"title"`
}

type CustomConfigCustomOutputState

type CustomConfigCustomOutputState struct {
	Properties []CustomConfigCustomOutputPropertiesState `json:"properties"`
}

type CustomConfigPredicate

type CustomConfigPredicate struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Expression: string, required
	Expression terra.StringValue `hcl:"expression,attr" validate:"required"`
	// Location: string, optional
	Location terra.StringValue `hcl:"location,attr"`
	// Title: string, optional
	Title terra.StringValue `hcl:"title,attr"`
}

type CustomConfigPredicateAttributes

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

func (CustomConfigPredicateAttributes) Description

func (CustomConfigPredicateAttributes) Expression

func (CustomConfigPredicateAttributes) InternalRef

func (CustomConfigPredicateAttributes) InternalTokens

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

func (CustomConfigPredicateAttributes) InternalWithRef

func (CustomConfigPredicateAttributes) Location

func (CustomConfigPredicateAttributes) Title

type CustomConfigPredicateState

type CustomConfigPredicateState struct {
	Description string `json:"description"`
	Expression  string `json:"expression"`
	Location    string `json:"location"`
	Title       string `json:"title"`
}

type CustomConfigResourceSelector

type CustomConfigResourceSelector struct {
	// ResourceTypes: list of string, required
	ResourceTypes terra.ListValue[terra.StringValue] `hcl:"resource_types,attr" validate:"required"`
}

type CustomConfigResourceSelectorAttributes

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

func (CustomConfigResourceSelectorAttributes) InternalRef

func (CustomConfigResourceSelectorAttributes) InternalTokens

func (CustomConfigResourceSelectorAttributes) InternalWithRef

func (CustomConfigResourceSelectorAttributes) ResourceTypes

type CustomConfigResourceSelectorState

type CustomConfigResourceSelectorState struct {
	ResourceTypes []string `json:"resource_types"`
}

type CustomConfigState

type CustomConfigState struct {
	Description      string                              `json:"description"`
	Recommendation   string                              `json:"recommendation"`
	Severity         string                              `json:"severity"`
	CustomOutput     []CustomConfigCustomOutputState     `json:"custom_output"`
	Predicate        []CustomConfigPredicateState        `json:"predicate"`
	ResourceSelector []CustomConfigResourceSelectorState `json:"resource_selector"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gsocm *Resource) Attributes() googleSccOrganizationCustomModuleAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gsocm *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gsocm *Resource) State() (*googleSccOrganizationCustomModuleState, bool)

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

func (*Resource) StateMust

func (gsocm *Resource) StateMust() *googleSccOrganizationCustomModuleState

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

func (*Resource) Type

func (gsocm *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"`
	// 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) Update

type TimeoutsState

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

Jump to

Keyboard shortcuts

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