aws_iot_ca_certificate

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 {
	// Active: bool, required
	Active terra.BoolValue `hcl:"active,attr" validate:"required"`
	// AllowAutoRegistration: bool, required
	AllowAutoRegistration terra.BoolValue `hcl:"allow_auto_registration,attr" validate:"required"`
	// CaCertificatePem: string, required
	CaCertificatePem terra.StringValue `hcl:"ca_certificate_pem,attr" validate:"required"`
	// CertificateMode: string, optional
	CertificateMode terra.StringValue `hcl:"certificate_mode,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// VerificationCertificatePem: string, optional
	VerificationCertificatePem terra.StringValue `hcl:"verification_certificate_pem,attr"`
	// RegistrationConfig: optional
	RegistrationConfig *RegistrationConfig `hcl:"registration_config,block"`
}

Args contains the configurations for aws_iot_ca_certificate.

type RegistrationConfig

type RegistrationConfig struct {
	// RoleArn: string, optional
	RoleArn terra.StringValue `hcl:"role_arn,attr"`
	// TemplateBody: string, optional
	TemplateBody terra.StringValue `hcl:"template_body,attr"`
	// TemplateName: string, optional
	TemplateName terra.StringValue `hcl:"template_name,attr"`
}

type RegistrationConfigAttributes

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

func (RegistrationConfigAttributes) InternalRef

func (rc RegistrationConfigAttributes) InternalRef() (terra.Reference, error)

func (RegistrationConfigAttributes) InternalTokens

func (rc RegistrationConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RegistrationConfigAttributes) InternalWithRef

func (RegistrationConfigAttributes) RoleArn

func (RegistrationConfigAttributes) TemplateBody

func (RegistrationConfigAttributes) TemplateName

type RegistrationConfigState

type RegistrationConfigState struct {
	RoleArn      string `json:"role_arn"`
	TemplateBody string `json:"template_body"`
	TemplateName string `json:"template_name"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aicc *Resource) Attributes() awsIotCaCertificateAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aicc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aicc *Resource) State() (*awsIotCaCertificateState, bool)

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

func (*Resource) StateMust

func (aicc *Resource) StateMust() *awsIotCaCertificateState

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

func (*Resource) Type

func (aicc *Resource) Type() string

Type returns the Terraform object type for Resource.

type ValidityAttributes

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

func (ValidityAttributes) InternalRef

func (v ValidityAttributes) InternalRef() (terra.Reference, error)

func (ValidityAttributes) InternalTokens

func (v ValidityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ValidityAttributes) InternalWithRef

func (v ValidityAttributes) InternalWithRef(ref terra.Reference) ValidityAttributes

func (ValidityAttributes) NotAfter

func (v ValidityAttributes) NotAfter() terra.StringValue

func (ValidityAttributes) NotBefore

func (v ValidityAttributes) NotBefore() terra.StringValue

type ValidityState

type ValidityState struct {
	NotAfter  string `json:"not_after"`
	NotBefore string `json:"not_before"`
}

Jump to

Keyboard shortcuts

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