google_privateca_certificate_template

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"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// IdentityConstraints: optional
	IdentityConstraints *IdentityConstraints `hcl:"identity_constraints,block"`
	// PassthroughExtensions: optional
	PassthroughExtensions *PassthroughExtensions `hcl:"passthrough_extensions,block"`
	// PredefinedValues: optional
	PredefinedValues *PredefinedValues `hcl:"predefined_values,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_privateca_certificate_template.

type IdentityConstraints

type IdentityConstraints struct {
	// AllowSubjectAltNamesPassthrough: bool, required
	AllowSubjectAltNamesPassthrough terra.BoolValue `hcl:"allow_subject_alt_names_passthrough,attr" validate:"required"`
	// AllowSubjectPassthrough: bool, required
	AllowSubjectPassthrough terra.BoolValue `hcl:"allow_subject_passthrough,attr" validate:"required"`
	// IdentityConstraintsCelExpression: optional
	CelExpression *IdentityConstraintsCelExpression `hcl:"cel_expression,block"`
}

type IdentityConstraintsAttributes

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

func (IdentityConstraintsAttributes) AllowSubjectAltNamesPassthrough

func (ic IdentityConstraintsAttributes) AllowSubjectAltNamesPassthrough() terra.BoolValue

func (IdentityConstraintsAttributes) AllowSubjectPassthrough

func (ic IdentityConstraintsAttributes) AllowSubjectPassthrough() terra.BoolValue

func (IdentityConstraintsAttributes) CelExpression

func (IdentityConstraintsAttributes) InternalRef

func (ic IdentityConstraintsAttributes) InternalRef() (terra.Reference, error)

func (IdentityConstraintsAttributes) InternalTokens

func (ic IdentityConstraintsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (IdentityConstraintsAttributes) InternalWithRef

type IdentityConstraintsCelExpression

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

type IdentityConstraintsCelExpressionAttributes

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

func (IdentityConstraintsCelExpressionAttributes) Description

func (IdentityConstraintsCelExpressionAttributes) Expression

func (IdentityConstraintsCelExpressionAttributes) InternalRef

func (IdentityConstraintsCelExpressionAttributes) InternalTokens

func (IdentityConstraintsCelExpressionAttributes) InternalWithRef

func (IdentityConstraintsCelExpressionAttributes) Location

func (IdentityConstraintsCelExpressionAttributes) Title

type IdentityConstraintsCelExpressionState

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

type IdentityConstraintsState

type IdentityConstraintsState struct {
	AllowSubjectAltNamesPassthrough bool                                    `json:"allow_subject_alt_names_passthrough"`
	AllowSubjectPassthrough         bool                                    `json:"allow_subject_passthrough"`
	CelExpression                   []IdentityConstraintsCelExpressionState `json:"cel_expression"`
}

type PassthroughExtensions

type PassthroughExtensions struct {
	// KnownExtensions: list of string, optional
	KnownExtensions terra.ListValue[terra.StringValue] `hcl:"known_extensions,attr"`
	// PassthroughExtensionsAdditionalExtensions: min=0
	AdditionalExtensions []PassthroughExtensionsAdditionalExtensions `hcl:"additional_extensions,block" validate:"min=0"`
}

type PassthroughExtensionsAdditionalExtensions

type PassthroughExtensionsAdditionalExtensions struct {
	// ObjectIdPath: list of number, required
	ObjectIdPath terra.ListValue[terra.NumberValue] `hcl:"object_id_path,attr" validate:"required"`
}

type PassthroughExtensionsAdditionalExtensionsAttributes

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

func (PassthroughExtensionsAdditionalExtensionsAttributes) InternalRef

func (PassthroughExtensionsAdditionalExtensionsAttributes) InternalTokens

func (PassthroughExtensionsAdditionalExtensionsAttributes) InternalWithRef

func (PassthroughExtensionsAdditionalExtensionsAttributes) ObjectIdPath

type PassthroughExtensionsAdditionalExtensionsState

type PassthroughExtensionsAdditionalExtensionsState struct {
	ObjectIdPath []float64 `json:"object_id_path"`
}

type PassthroughExtensionsAttributes

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

func (PassthroughExtensionsAttributes) AdditionalExtensions

func (PassthroughExtensionsAttributes) InternalRef

func (PassthroughExtensionsAttributes) InternalTokens

func (pe PassthroughExtensionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PassthroughExtensionsAttributes) InternalWithRef

func (PassthroughExtensionsAttributes) KnownExtensions

type PassthroughExtensionsState

type PassthroughExtensionsState struct {
	KnownExtensions      []string                                         `json:"known_extensions"`
	AdditionalExtensions []PassthroughExtensionsAdditionalExtensionsState `json:"additional_extensions"`
}

type PredefinedValues

type PredefinedValues struct {
	// AiaOcspServers: list of string, optional
	AiaOcspServers terra.ListValue[terra.StringValue] `hcl:"aia_ocsp_servers,attr"`
	// PredefinedValuesAdditionalExtensions: min=0
	AdditionalExtensions []PredefinedValuesAdditionalExtensions `hcl:"additional_extensions,block" validate:"min=0"`
	// PredefinedValuesCaOptions: optional
	CaOptions *PredefinedValuesCaOptions `hcl:"ca_options,block"`
	// PredefinedValuesKeyUsage: optional
	KeyUsage *PredefinedValuesKeyUsage `hcl:"key_usage,block"`
	// PredefinedValuesPolicyIds: min=0
	PolicyIds []PredefinedValuesPolicyIds `hcl:"policy_ids,block" validate:"min=0"`
}

type PredefinedValuesAdditionalExtensions

type PredefinedValuesAdditionalExtensions struct {
	// Critical: bool, optional
	Critical terra.BoolValue `hcl:"critical,attr"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
	// PredefinedValuesAdditionalExtensionsObjectId: required
	ObjectId *PredefinedValuesAdditionalExtensionsObjectId `hcl:"object_id,block" validate:"required"`
}

type PredefinedValuesAdditionalExtensionsAttributes

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

func (PredefinedValuesAdditionalExtensionsAttributes) Critical

func (PredefinedValuesAdditionalExtensionsAttributes) InternalRef

func (PredefinedValuesAdditionalExtensionsAttributes) InternalTokens

func (PredefinedValuesAdditionalExtensionsAttributes) InternalWithRef

func (PredefinedValuesAdditionalExtensionsAttributes) ObjectId

func (PredefinedValuesAdditionalExtensionsAttributes) Value

type PredefinedValuesAdditionalExtensionsObjectId

type PredefinedValuesAdditionalExtensionsObjectId struct {
	// ObjectIdPath: list of number, required
	ObjectIdPath terra.ListValue[terra.NumberValue] `hcl:"object_id_path,attr" validate:"required"`
}

type PredefinedValuesAdditionalExtensionsObjectIdAttributes

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

func (PredefinedValuesAdditionalExtensionsObjectIdAttributes) InternalRef

func (PredefinedValuesAdditionalExtensionsObjectIdAttributes) InternalTokens

func (PredefinedValuesAdditionalExtensionsObjectIdAttributes) InternalWithRef

func (PredefinedValuesAdditionalExtensionsObjectIdAttributes) ObjectIdPath

type PredefinedValuesAdditionalExtensionsObjectIdState

type PredefinedValuesAdditionalExtensionsObjectIdState struct {
	ObjectIdPath []float64 `json:"object_id_path"`
}

type PredefinedValuesAdditionalExtensionsState

type PredefinedValuesAdditionalExtensionsState struct {
	Critical bool                                                `json:"critical"`
	Value    string                                              `json:"value"`
	ObjectId []PredefinedValuesAdditionalExtensionsObjectIdState `json:"object_id"`
}

type PredefinedValuesAttributes

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

func (PredefinedValuesAttributes) AdditionalExtensions

func (PredefinedValuesAttributes) AiaOcspServers

func (PredefinedValuesAttributes) CaOptions

func (PredefinedValuesAttributes) InternalRef

func (pv PredefinedValuesAttributes) InternalRef() (terra.Reference, error)

func (PredefinedValuesAttributes) InternalTokens

func (pv PredefinedValuesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PredefinedValuesAttributes) InternalWithRef

func (PredefinedValuesAttributes) KeyUsage

func (PredefinedValuesAttributes) PolicyIds

type PredefinedValuesCaOptions

type PredefinedValuesCaOptions struct {
	// IsCa: bool, optional
	IsCa terra.BoolValue `hcl:"is_ca,attr"`
	// MaxIssuerPathLength: number, optional
	MaxIssuerPathLength terra.NumberValue `hcl:"max_issuer_path_length,attr"`
}

type PredefinedValuesCaOptionsAttributes

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

func (PredefinedValuesCaOptionsAttributes) InternalRef

func (PredefinedValuesCaOptionsAttributes) InternalTokens

func (PredefinedValuesCaOptionsAttributes) InternalWithRef

func (PredefinedValuesCaOptionsAttributes) IsCa

func (PredefinedValuesCaOptionsAttributes) MaxIssuerPathLength

func (co PredefinedValuesCaOptionsAttributes) MaxIssuerPathLength() terra.NumberValue

type PredefinedValuesCaOptionsState

type PredefinedValuesCaOptionsState struct {
	IsCa                bool    `json:"is_ca"`
	MaxIssuerPathLength float64 `json:"max_issuer_path_length"`
}

type PredefinedValuesKeyUsage

type PredefinedValuesKeyUsage struct {
	// PredefinedValuesKeyUsageBaseKeyUsage: optional
	BaseKeyUsage *PredefinedValuesKeyUsageBaseKeyUsage `hcl:"base_key_usage,block"`
	// PredefinedValuesKeyUsageExtendedKeyUsage: optional
	ExtendedKeyUsage *PredefinedValuesKeyUsageExtendedKeyUsage `hcl:"extended_key_usage,block"`
	// PredefinedValuesKeyUsageUnknownExtendedKeyUsages: min=0
	UnknownExtendedKeyUsages []PredefinedValuesKeyUsageUnknownExtendedKeyUsages `hcl:"unknown_extended_key_usages,block" validate:"min=0"`
}

type PredefinedValuesKeyUsageAttributes

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

func (PredefinedValuesKeyUsageAttributes) BaseKeyUsage

func (PredefinedValuesKeyUsageAttributes) ExtendedKeyUsage

func (PredefinedValuesKeyUsageAttributes) InternalRef

func (PredefinedValuesKeyUsageAttributes) InternalTokens

func (PredefinedValuesKeyUsageAttributes) InternalWithRef

type PredefinedValuesKeyUsageBaseKeyUsage

type PredefinedValuesKeyUsageBaseKeyUsage struct {
	// CertSign: bool, optional
	CertSign terra.BoolValue `hcl:"cert_sign,attr"`
	// ContentCommitment: bool, optional
	ContentCommitment terra.BoolValue `hcl:"content_commitment,attr"`
	// CrlSign: bool, optional
	CrlSign terra.BoolValue `hcl:"crl_sign,attr"`
	// DataEncipherment: bool, optional
	DataEncipherment terra.BoolValue `hcl:"data_encipherment,attr"`
	// DecipherOnly: bool, optional
	DecipherOnly terra.BoolValue `hcl:"decipher_only,attr"`
	// DigitalSignature: bool, optional
	DigitalSignature terra.BoolValue `hcl:"digital_signature,attr"`
	// EncipherOnly: bool, optional
	EncipherOnly terra.BoolValue `hcl:"encipher_only,attr"`
	// KeyAgreement: bool, optional
	KeyAgreement terra.BoolValue `hcl:"key_agreement,attr"`
	// KeyEncipherment: bool, optional
	KeyEncipherment terra.BoolValue `hcl:"key_encipherment,attr"`
}

type PredefinedValuesKeyUsageBaseKeyUsageAttributes

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

func (PredefinedValuesKeyUsageBaseKeyUsageAttributes) CertSign

func (PredefinedValuesKeyUsageBaseKeyUsageAttributes) ContentCommitment

func (PredefinedValuesKeyUsageBaseKeyUsageAttributes) CrlSign

func (PredefinedValuesKeyUsageBaseKeyUsageAttributes) DataEncipherment

func (PredefinedValuesKeyUsageBaseKeyUsageAttributes) DecipherOnly

func (PredefinedValuesKeyUsageBaseKeyUsageAttributes) DigitalSignature

func (PredefinedValuesKeyUsageBaseKeyUsageAttributes) EncipherOnly

func (PredefinedValuesKeyUsageBaseKeyUsageAttributes) InternalRef

func (PredefinedValuesKeyUsageBaseKeyUsageAttributes) InternalTokens

func (PredefinedValuesKeyUsageBaseKeyUsageAttributes) InternalWithRef

func (PredefinedValuesKeyUsageBaseKeyUsageAttributes) KeyAgreement

func (PredefinedValuesKeyUsageBaseKeyUsageAttributes) KeyEncipherment

type PredefinedValuesKeyUsageBaseKeyUsageState

type PredefinedValuesKeyUsageBaseKeyUsageState struct {
	CertSign          bool `json:"cert_sign"`
	ContentCommitment bool `json:"content_commitment"`
	CrlSign           bool `json:"crl_sign"`
	DataEncipherment  bool `json:"data_encipherment"`
	DecipherOnly      bool `json:"decipher_only"`
	DigitalSignature  bool `json:"digital_signature"`
	EncipherOnly      bool `json:"encipher_only"`
	KeyAgreement      bool `json:"key_agreement"`
	KeyEncipherment   bool `json:"key_encipherment"`
}

type PredefinedValuesKeyUsageExtendedKeyUsage

type PredefinedValuesKeyUsageExtendedKeyUsage struct {
	// ClientAuth: bool, optional
	ClientAuth terra.BoolValue `hcl:"client_auth,attr"`
	// CodeSigning: bool, optional
	CodeSigning terra.BoolValue `hcl:"code_signing,attr"`
	// EmailProtection: bool, optional
	EmailProtection terra.BoolValue `hcl:"email_protection,attr"`
	// OcspSigning: bool, optional
	OcspSigning terra.BoolValue `hcl:"ocsp_signing,attr"`
	// ServerAuth: bool, optional
	ServerAuth terra.BoolValue `hcl:"server_auth,attr"`
	// TimeStamping: bool, optional
	TimeStamping terra.BoolValue `hcl:"time_stamping,attr"`
}

type PredefinedValuesKeyUsageExtendedKeyUsageAttributes

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

func (PredefinedValuesKeyUsageExtendedKeyUsageAttributes) ClientAuth

func (PredefinedValuesKeyUsageExtendedKeyUsageAttributes) CodeSigning

func (PredefinedValuesKeyUsageExtendedKeyUsageAttributes) EmailProtection

func (PredefinedValuesKeyUsageExtendedKeyUsageAttributes) InternalRef

func (PredefinedValuesKeyUsageExtendedKeyUsageAttributes) InternalTokens

func (PredefinedValuesKeyUsageExtendedKeyUsageAttributes) InternalWithRef

func (PredefinedValuesKeyUsageExtendedKeyUsageAttributes) OcspSigning

func (PredefinedValuesKeyUsageExtendedKeyUsageAttributes) ServerAuth

func (PredefinedValuesKeyUsageExtendedKeyUsageAttributes) TimeStamping

type PredefinedValuesKeyUsageExtendedKeyUsageState

type PredefinedValuesKeyUsageExtendedKeyUsageState struct {
	ClientAuth      bool `json:"client_auth"`
	CodeSigning     bool `json:"code_signing"`
	EmailProtection bool `json:"email_protection"`
	OcspSigning     bool `json:"ocsp_signing"`
	ServerAuth      bool `json:"server_auth"`
	TimeStamping    bool `json:"time_stamping"`
}

type PredefinedValuesKeyUsageState

type PredefinedValuesKeyUsageState struct {
	BaseKeyUsage             []PredefinedValuesKeyUsageBaseKeyUsageState             `json:"base_key_usage"`
	ExtendedKeyUsage         []PredefinedValuesKeyUsageExtendedKeyUsageState         `json:"extended_key_usage"`
	UnknownExtendedKeyUsages []PredefinedValuesKeyUsageUnknownExtendedKeyUsagesState `json:"unknown_extended_key_usages"`
}

type PredefinedValuesKeyUsageUnknownExtendedKeyUsages

type PredefinedValuesKeyUsageUnknownExtendedKeyUsages struct {
	// ObjectIdPath: list of number, required
	ObjectIdPath terra.ListValue[terra.NumberValue] `hcl:"object_id_path,attr" validate:"required"`
}

type PredefinedValuesKeyUsageUnknownExtendedKeyUsagesAttributes

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

func (PredefinedValuesKeyUsageUnknownExtendedKeyUsagesAttributes) InternalRef

func (PredefinedValuesKeyUsageUnknownExtendedKeyUsagesAttributes) InternalTokens

func (PredefinedValuesKeyUsageUnknownExtendedKeyUsagesAttributes) InternalWithRef

func (PredefinedValuesKeyUsageUnknownExtendedKeyUsagesAttributes) ObjectIdPath

type PredefinedValuesKeyUsageUnknownExtendedKeyUsagesState

type PredefinedValuesKeyUsageUnknownExtendedKeyUsagesState struct {
	ObjectIdPath []float64 `json:"object_id_path"`
}

type PredefinedValuesPolicyIds

type PredefinedValuesPolicyIds struct {
	// ObjectIdPath: list of number, required
	ObjectIdPath terra.ListValue[terra.NumberValue] `hcl:"object_id_path,attr" validate:"required"`
}

type PredefinedValuesPolicyIdsAttributes

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

func (PredefinedValuesPolicyIdsAttributes) InternalRef

func (PredefinedValuesPolicyIdsAttributes) InternalTokens

func (PredefinedValuesPolicyIdsAttributes) InternalWithRef

func (PredefinedValuesPolicyIdsAttributes) ObjectIdPath

type PredefinedValuesPolicyIdsState

type PredefinedValuesPolicyIdsState struct {
	ObjectIdPath []float64 `json:"object_id_path"`
}

type PredefinedValuesState

type PredefinedValuesState struct {
	AiaOcspServers       []string                                    `json:"aia_ocsp_servers"`
	AdditionalExtensions []PredefinedValuesAdditionalExtensionsState `json:"additional_extensions"`
	CaOptions            []PredefinedValuesCaOptionsState            `json:"ca_options"`
	KeyUsage             []PredefinedValuesKeyUsageState             `json:"key_usage"`
	PolicyIds            []PredefinedValuesPolicyIdsState            `json:"policy_ids"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gpct *Resource) Attributes() googlePrivatecaCertificateTemplateAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gpct *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gpct *Resource) State() (*googlePrivatecaCertificateTemplateState, bool)

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

func (*Resource) StateMust

func (gpct *Resource) StateMust() *googlePrivatecaCertificateTemplateState

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

func (*Resource) Type

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