google_binary_authorization_policy

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 AdmissionWhitelistPatterns

type AdmissionWhitelistPatterns struct {
	// NamePattern: string, required
	NamePattern terra.StringValue `hcl:"name_pattern,attr" validate:"required"`
}

type AdmissionWhitelistPatternsAttributes

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

func (AdmissionWhitelistPatternsAttributes) InternalRef

func (AdmissionWhitelistPatternsAttributes) InternalTokens

func (AdmissionWhitelistPatternsAttributes) InternalWithRef

func (AdmissionWhitelistPatternsAttributes) NamePattern

type AdmissionWhitelistPatternsState

type AdmissionWhitelistPatternsState struct {
	NamePattern string `json:"name_pattern"`
}

type Args

type Args struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// GlobalPolicyEvaluationMode: string, optional
	GlobalPolicyEvaluationMode terra.StringValue `hcl:"global_policy_evaluation_mode,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// AdmissionWhitelistPatterns: min=0
	AdmissionWhitelistPatterns []AdmissionWhitelistPatterns `hcl:"admission_whitelist_patterns,block" validate:"min=0"`
	// ClusterAdmissionRules: min=0
	ClusterAdmissionRules []ClusterAdmissionRules `hcl:"cluster_admission_rules,block" validate:"min=0"`
	// DefaultAdmissionRule: required
	DefaultAdmissionRule *DefaultAdmissionRule `hcl:"default_admission_rule,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_binary_authorization_policy.

type ClusterAdmissionRules

type ClusterAdmissionRules struct {
	// Cluster: string, required
	Cluster terra.StringValue `hcl:"cluster,attr" validate:"required"`
	// EnforcementMode: string, required
	EnforcementMode terra.StringValue `hcl:"enforcement_mode,attr" validate:"required"`
	// EvaluationMode: string, required
	EvaluationMode terra.StringValue `hcl:"evaluation_mode,attr" validate:"required"`
	// RequireAttestationsBy: set of string, optional
	RequireAttestationsBy terra.SetValue[terra.StringValue] `hcl:"require_attestations_by,attr"`
}

type ClusterAdmissionRulesAttributes

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

func (ClusterAdmissionRulesAttributes) Cluster

func (ClusterAdmissionRulesAttributes) EnforcementMode

func (car ClusterAdmissionRulesAttributes) EnforcementMode() terra.StringValue

func (ClusterAdmissionRulesAttributes) EvaluationMode

func (car ClusterAdmissionRulesAttributes) EvaluationMode() terra.StringValue

func (ClusterAdmissionRulesAttributes) InternalRef

func (ClusterAdmissionRulesAttributes) InternalTokens

func (car ClusterAdmissionRulesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ClusterAdmissionRulesAttributes) InternalWithRef

func (ClusterAdmissionRulesAttributes) RequireAttestationsBy

func (car ClusterAdmissionRulesAttributes) RequireAttestationsBy() terra.SetValue[terra.StringValue]

type ClusterAdmissionRulesState

type ClusterAdmissionRulesState struct {
	Cluster               string   `json:"cluster"`
	EnforcementMode       string   `json:"enforcement_mode"`
	EvaluationMode        string   `json:"evaluation_mode"`
	RequireAttestationsBy []string `json:"require_attestations_by"`
}

type DefaultAdmissionRule

type DefaultAdmissionRule struct {
	// EnforcementMode: string, required
	EnforcementMode terra.StringValue `hcl:"enforcement_mode,attr" validate:"required"`
	// EvaluationMode: string, required
	EvaluationMode terra.StringValue `hcl:"evaluation_mode,attr" validate:"required"`
	// RequireAttestationsBy: set of string, optional
	RequireAttestationsBy terra.SetValue[terra.StringValue] `hcl:"require_attestations_by,attr"`
}

type DefaultAdmissionRuleAttributes

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

func (DefaultAdmissionRuleAttributes) EnforcementMode

func (dar DefaultAdmissionRuleAttributes) EnforcementMode() terra.StringValue

func (DefaultAdmissionRuleAttributes) EvaluationMode

func (dar DefaultAdmissionRuleAttributes) EvaluationMode() terra.StringValue

func (DefaultAdmissionRuleAttributes) InternalRef

func (dar DefaultAdmissionRuleAttributes) InternalRef() (terra.Reference, error)

func (DefaultAdmissionRuleAttributes) InternalTokens

func (dar DefaultAdmissionRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DefaultAdmissionRuleAttributes) InternalWithRef

func (DefaultAdmissionRuleAttributes) RequireAttestationsBy

func (dar DefaultAdmissionRuleAttributes) RequireAttestationsBy() terra.SetValue[terra.StringValue]

type DefaultAdmissionRuleState

type DefaultAdmissionRuleState struct {
	EnforcementMode       string   `json:"enforcement_mode"`
	EvaluationMode        string   `json:"evaluation_mode"`
	RequireAttestationsBy []string `json:"require_attestations_by"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gbap *Resource) Attributes() googleBinaryAuthorizationPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gbap *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gbap *Resource) State() (*googleBinaryAuthorizationPolicyState, bool)

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

func (*Resource) StateMust

func (gbap *Resource) StateMust() *googleBinaryAuthorizationPolicyState

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

func (*Resource) Type

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