aws_apprunner_service

package
v5.45.0 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 {
	// AutoScalingConfigurationArn: string, optional
	AutoScalingConfigurationArn terra.StringValue `hcl:"auto_scaling_configuration_arn,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ServiceName: string, required
	ServiceName terra.StringValue `hcl:"service_name,attr" validate:"required"`
	// 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"`
	// EncryptionConfiguration: optional
	EncryptionConfiguration *EncryptionConfiguration `hcl:"encryption_configuration,block"`
	// HealthCheckConfiguration: optional
	HealthCheckConfiguration *HealthCheckConfiguration `hcl:"health_check_configuration,block"`
	// InstanceConfiguration: optional
	InstanceConfiguration *InstanceConfiguration `hcl:"instance_configuration,block"`
	// NetworkConfiguration: optional
	NetworkConfiguration *NetworkConfiguration `hcl:"network_configuration,block"`
	// ObservabilityConfiguration: optional
	ObservabilityConfiguration *ObservabilityConfiguration `hcl:"observability_configuration,block"`
	// SourceConfiguration: required
	SourceConfiguration *SourceConfiguration `hcl:"source_configuration,block" validate:"required"`
}

Args contains the configurations for aws_apprunner_service.

type EncryptionConfiguration

type EncryptionConfiguration struct {
	// KmsKey: string, required
	KmsKey terra.StringValue `hcl:"kms_key,attr" validate:"required"`
}

type EncryptionConfigurationAttributes

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

func (EncryptionConfigurationAttributes) InternalRef

func (EncryptionConfigurationAttributes) InternalTokens

func (ec EncryptionConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EncryptionConfigurationAttributes) InternalWithRef

func (EncryptionConfigurationAttributes) KmsKey

type EncryptionConfigurationState

type EncryptionConfigurationState struct {
	KmsKey string `json:"kms_key"`
}

type HealthCheckConfiguration

type HealthCheckConfiguration struct {
	// HealthyThreshold: number, optional
	HealthyThreshold terra.NumberValue `hcl:"healthy_threshold,attr"`
	// Interval: number, optional
	Interval terra.NumberValue `hcl:"interval,attr"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// Protocol: string, optional
	Protocol terra.StringValue `hcl:"protocol,attr"`
	// Timeout: number, optional
	Timeout terra.NumberValue `hcl:"timeout,attr"`
	// UnhealthyThreshold: number, optional
	UnhealthyThreshold terra.NumberValue `hcl:"unhealthy_threshold,attr"`
}

type HealthCheckConfigurationAttributes

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

func (HealthCheckConfigurationAttributes) HealthyThreshold

func (hcc HealthCheckConfigurationAttributes) HealthyThreshold() terra.NumberValue

func (HealthCheckConfigurationAttributes) InternalRef

func (HealthCheckConfigurationAttributes) InternalTokens

func (hcc HealthCheckConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HealthCheckConfigurationAttributes) InternalWithRef

func (HealthCheckConfigurationAttributes) Interval

func (HealthCheckConfigurationAttributes) Path

func (HealthCheckConfigurationAttributes) Protocol

func (HealthCheckConfigurationAttributes) Timeout

func (HealthCheckConfigurationAttributes) UnhealthyThreshold

func (hcc HealthCheckConfigurationAttributes) UnhealthyThreshold() terra.NumberValue

type HealthCheckConfigurationState

type HealthCheckConfigurationState struct {
	HealthyThreshold   float64 `json:"healthy_threshold"`
	Interval           float64 `json:"interval"`
	Path               string  `json:"path"`
	Protocol           string  `json:"protocol"`
	Timeout            float64 `json:"timeout"`
	UnhealthyThreshold float64 `json:"unhealthy_threshold"`
}

type InstanceConfiguration

type InstanceConfiguration struct {
	// Cpu: string, optional
	Cpu terra.StringValue `hcl:"cpu,attr"`
	// InstanceRoleArn: string, optional
	InstanceRoleArn terra.StringValue `hcl:"instance_role_arn,attr"`
	// Memory: string, optional
	Memory terra.StringValue `hcl:"memory,attr"`
}

type InstanceConfigurationAttributes

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

func (InstanceConfigurationAttributes) Cpu

func (InstanceConfigurationAttributes) InstanceRoleArn

func (ic InstanceConfigurationAttributes) InstanceRoleArn() terra.StringValue

func (InstanceConfigurationAttributes) InternalRef

func (InstanceConfigurationAttributes) InternalTokens

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

func (InstanceConfigurationAttributes) InternalWithRef

func (InstanceConfigurationAttributes) Memory

type InstanceConfigurationState

type InstanceConfigurationState struct {
	Cpu             string `json:"cpu"`
	InstanceRoleArn string `json:"instance_role_arn"`
	Memory          string `json:"memory"`
}

type NetworkConfiguration

type NetworkConfiguration struct {
	// NetworkConfigurationEgressConfiguration: optional
	EgressConfiguration *NetworkConfigurationEgressConfiguration `hcl:"egress_configuration,block"`
	// NetworkConfigurationIngressConfiguration: optional
	IngressConfiguration *NetworkConfigurationIngressConfiguration `hcl:"ingress_configuration,block"`
}

type NetworkConfigurationAttributes

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

func (NetworkConfigurationAttributes) EgressConfiguration

func (NetworkConfigurationAttributes) IngressConfiguration

func (NetworkConfigurationAttributes) InternalRef

func (NetworkConfigurationAttributes) InternalTokens

func (nc NetworkConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkConfigurationAttributes) InternalWithRef

type NetworkConfigurationEgressConfiguration

type NetworkConfigurationEgressConfiguration struct {
	// EgressType: string, optional
	EgressType terra.StringValue `hcl:"egress_type,attr"`
	// VpcConnectorArn: string, optional
	VpcConnectorArn terra.StringValue `hcl:"vpc_connector_arn,attr"`
}

type NetworkConfigurationEgressConfigurationAttributes

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

func (NetworkConfigurationEgressConfigurationAttributes) EgressType

func (NetworkConfigurationEgressConfigurationAttributes) InternalRef

func (NetworkConfigurationEgressConfigurationAttributes) InternalTokens

func (NetworkConfigurationEgressConfigurationAttributes) InternalWithRef

func (NetworkConfigurationEgressConfigurationAttributes) VpcConnectorArn

type NetworkConfigurationEgressConfigurationState

type NetworkConfigurationEgressConfigurationState struct {
	EgressType      string `json:"egress_type"`
	VpcConnectorArn string `json:"vpc_connector_arn"`
}

type NetworkConfigurationIngressConfiguration

type NetworkConfigurationIngressConfiguration struct {
	// IsPubliclyAccessible: bool, optional
	IsPubliclyAccessible terra.BoolValue `hcl:"is_publicly_accessible,attr"`
}

type NetworkConfigurationIngressConfigurationAttributes

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

func (NetworkConfigurationIngressConfigurationAttributes) InternalRef

func (NetworkConfigurationIngressConfigurationAttributes) InternalTokens

func (NetworkConfigurationIngressConfigurationAttributes) InternalWithRef

func (NetworkConfigurationIngressConfigurationAttributes) IsPubliclyAccessible

type NetworkConfigurationIngressConfigurationState

type NetworkConfigurationIngressConfigurationState struct {
	IsPubliclyAccessible bool `json:"is_publicly_accessible"`
}

type NetworkConfigurationState

type NetworkConfigurationState struct {
	EgressConfiguration  []NetworkConfigurationEgressConfigurationState  `json:"egress_configuration"`
	IngressConfiguration []NetworkConfigurationIngressConfigurationState `json:"ingress_configuration"`
}

type ObservabilityConfiguration

type ObservabilityConfiguration struct {
	// ObservabilityConfigurationArn: string, required
	ObservabilityConfigurationArn terra.StringValue `hcl:"observability_configuration_arn,attr" validate:"required"`
	// ObservabilityEnabled: bool, required
	ObservabilityEnabled terra.BoolValue `hcl:"observability_enabled,attr" validate:"required"`
}

type ObservabilityConfigurationAttributes

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

func (ObservabilityConfigurationAttributes) InternalRef

func (ObservabilityConfigurationAttributes) InternalTokens

func (ObservabilityConfigurationAttributes) InternalWithRef

func (ObservabilityConfigurationAttributes) ObservabilityConfigurationArn

func (oc ObservabilityConfigurationAttributes) ObservabilityConfigurationArn() terra.StringValue

func (ObservabilityConfigurationAttributes) ObservabilityEnabled

func (oc ObservabilityConfigurationAttributes) ObservabilityEnabled() terra.BoolValue

type ObservabilityConfigurationState

type ObservabilityConfigurationState struct {
	ObservabilityConfigurationArn string `json:"observability_configuration_arn"`
	ObservabilityEnabled          bool   `json:"observability_enabled"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aas *Resource) Attributes() awsApprunnerServiceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aas *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aas *Resource) State() (*awsApprunnerServiceState, bool)

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

func (*Resource) StateMust

func (aas *Resource) StateMust() *awsApprunnerServiceState

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

func (*Resource) Type

func (aas *Resource) Type() string

Type returns the Terraform object type for Resource.

type SourceConfiguration

type SourceConfiguration struct {
	// AutoDeploymentsEnabled: bool, optional
	AutoDeploymentsEnabled terra.BoolValue `hcl:"auto_deployments_enabled,attr"`
	// SourceConfigurationAuthenticationConfiguration: optional
	AuthenticationConfiguration *SourceConfigurationAuthenticationConfiguration `hcl:"authentication_configuration,block"`
	// SourceConfigurationCodeRepository: optional
	CodeRepository *SourceConfigurationCodeRepository `hcl:"code_repository,block"`
	// SourceConfigurationImageRepository: optional
	ImageRepository *SourceConfigurationImageRepository `hcl:"image_repository,block"`
}

type SourceConfigurationAttributes

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

func (SourceConfigurationAttributes) AutoDeploymentsEnabled

func (sc SourceConfigurationAttributes) AutoDeploymentsEnabled() terra.BoolValue

func (SourceConfigurationAttributes) CodeRepository

func (SourceConfigurationAttributes) ImageRepository

func (SourceConfigurationAttributes) InternalRef

func (sc SourceConfigurationAttributes) InternalRef() (terra.Reference, error)

func (SourceConfigurationAttributes) InternalTokens

func (sc SourceConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourceConfigurationAttributes) InternalWithRef

type SourceConfigurationAuthenticationConfiguration

type SourceConfigurationAuthenticationConfiguration struct {
	// AccessRoleArn: string, optional
	AccessRoleArn terra.StringValue `hcl:"access_role_arn,attr"`
	// ConnectionArn: string, optional
	ConnectionArn terra.StringValue `hcl:"connection_arn,attr"`
}

type SourceConfigurationAuthenticationConfigurationAttributes

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

func (SourceConfigurationAuthenticationConfigurationAttributes) AccessRoleArn

func (SourceConfigurationAuthenticationConfigurationAttributes) ConnectionArn

func (SourceConfigurationAuthenticationConfigurationAttributes) InternalRef

func (SourceConfigurationAuthenticationConfigurationAttributes) InternalTokens

func (SourceConfigurationAuthenticationConfigurationAttributes) InternalWithRef

type SourceConfigurationAuthenticationConfigurationState

type SourceConfigurationAuthenticationConfigurationState struct {
	AccessRoleArn string `json:"access_role_arn"`
	ConnectionArn string `json:"connection_arn"`
}

type SourceConfigurationCodeRepository

type SourceConfigurationCodeRepository struct {
	// RepositoryUrl: string, required
	RepositoryUrl terra.StringValue `hcl:"repository_url,attr" validate:"required"`
	// SourceConfigurationCodeRepositoryCodeConfiguration: optional
	CodeConfiguration *SourceConfigurationCodeRepositoryCodeConfiguration `hcl:"code_configuration,block"`
	// SourceConfigurationCodeRepositorySourceCodeVersion: required
	SourceCodeVersion *SourceConfigurationCodeRepositorySourceCodeVersion `hcl:"source_code_version,block" validate:"required"`
}

type SourceConfigurationCodeRepositoryAttributes

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

func (SourceConfigurationCodeRepositoryAttributes) InternalRef

func (SourceConfigurationCodeRepositoryAttributes) InternalTokens

func (SourceConfigurationCodeRepositoryAttributes) InternalWithRef

func (SourceConfigurationCodeRepositoryAttributes) RepositoryUrl

type SourceConfigurationCodeRepositoryCodeConfiguration

type SourceConfigurationCodeRepositoryCodeConfiguration struct {
	// ConfigurationSource: string, required
	ConfigurationSource terra.StringValue `hcl:"configuration_source,attr" validate:"required"`
	// SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues: optional
	CodeConfigurationValues *SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues `hcl:"code_configuration_values,block"`
}

type SourceConfigurationCodeRepositoryCodeConfigurationAttributes

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

func (SourceConfigurationCodeRepositoryCodeConfigurationAttributes) ConfigurationSource

func (SourceConfigurationCodeRepositoryCodeConfigurationAttributes) InternalRef

func (SourceConfigurationCodeRepositoryCodeConfigurationAttributes) InternalTokens

func (SourceConfigurationCodeRepositoryCodeConfigurationAttributes) InternalWithRef

type SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues

type SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues struct {
	// BuildCommand: string, optional
	BuildCommand terra.StringValue `hcl:"build_command,attr"`
	// Port: string, optional
	Port terra.StringValue `hcl:"port,attr"`
	// Runtime: string, required
	Runtime terra.StringValue `hcl:"runtime,attr" validate:"required"`
	// RuntimeEnvironmentVariables: map of string, optional
	RuntimeEnvironmentVariables terra.MapValue[terra.StringValue] `hcl:"runtime_environment_variables,attr"`
	// StartCommand: string, optional
	StartCommand terra.StringValue `hcl:"start_command,attr"`
}

type SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesAttributes

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

func (SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesAttributes) BuildCommand

func (SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesAttributes) InternalRef

func (SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesAttributes) InternalTokens

func (SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesAttributes) Port

func (SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesAttributes) Runtime

func (SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesAttributes) RuntimeEnvironmentVariables

func (SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesAttributes) StartCommand

type SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesState

type SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesState struct {
	BuildCommand                string            `json:"build_command"`
	Port                        string            `json:"port"`
	Runtime                     string            `json:"runtime"`
	RuntimeEnvironmentVariables map[string]string `json:"runtime_environment_variables"`
	StartCommand                string            `json:"start_command"`
}

type SourceConfigurationCodeRepositoryCodeConfigurationState

type SourceConfigurationCodeRepositoryCodeConfigurationState struct {
	ConfigurationSource     string                                                                           `json:"configuration_source"`
	CodeConfigurationValues []SourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesState `json:"code_configuration_values"`
}

type SourceConfigurationCodeRepositorySourceCodeVersion

type SourceConfigurationCodeRepositorySourceCodeVersion struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type SourceConfigurationCodeRepositorySourceCodeVersionAttributes

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

func (SourceConfigurationCodeRepositorySourceCodeVersionAttributes) InternalRef

func (SourceConfigurationCodeRepositorySourceCodeVersionAttributes) InternalTokens

func (SourceConfigurationCodeRepositorySourceCodeVersionAttributes) InternalWithRef

func (SourceConfigurationCodeRepositorySourceCodeVersionAttributes) Type

func (SourceConfigurationCodeRepositorySourceCodeVersionAttributes) Value

type SourceConfigurationCodeRepositorySourceCodeVersionState

type SourceConfigurationCodeRepositorySourceCodeVersionState struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

type SourceConfigurationCodeRepositoryState

type SourceConfigurationCodeRepositoryState struct {
	RepositoryUrl     string                                                    `json:"repository_url"`
	CodeConfiguration []SourceConfigurationCodeRepositoryCodeConfigurationState `json:"code_configuration"`
	SourceCodeVersion []SourceConfigurationCodeRepositorySourceCodeVersionState `json:"source_code_version"`
}

type SourceConfigurationImageRepository

type SourceConfigurationImageRepository struct {
	// ImageIdentifier: string, required
	ImageIdentifier terra.StringValue `hcl:"image_identifier,attr" validate:"required"`
	// ImageRepositoryType: string, required
	ImageRepositoryType terra.StringValue `hcl:"image_repository_type,attr" validate:"required"`
	// SourceConfigurationImageRepositoryImageConfiguration: optional
	ImageConfiguration *SourceConfigurationImageRepositoryImageConfiguration `hcl:"image_configuration,block"`
}

type SourceConfigurationImageRepositoryAttributes

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

func (SourceConfigurationImageRepositoryAttributes) ImageIdentifier

func (SourceConfigurationImageRepositoryAttributes) ImageRepositoryType

func (SourceConfigurationImageRepositoryAttributes) InternalRef

func (SourceConfigurationImageRepositoryAttributes) InternalTokens

func (SourceConfigurationImageRepositoryAttributes) InternalWithRef

type SourceConfigurationImageRepositoryImageConfiguration

type SourceConfigurationImageRepositoryImageConfiguration struct {
	// Port: string, optional
	Port terra.StringValue `hcl:"port,attr"`
	// RuntimeEnvironmentVariables: map of string, optional
	RuntimeEnvironmentVariables terra.MapValue[terra.StringValue] `hcl:"runtime_environment_variables,attr"`
	// StartCommand: string, optional
	StartCommand terra.StringValue `hcl:"start_command,attr"`
}

type SourceConfigurationImageRepositoryImageConfigurationAttributes

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

func (SourceConfigurationImageRepositoryImageConfigurationAttributes) InternalRef

func (SourceConfigurationImageRepositoryImageConfigurationAttributes) InternalTokens

func (SourceConfigurationImageRepositoryImageConfigurationAttributes) InternalWithRef

func (SourceConfigurationImageRepositoryImageConfigurationAttributes) Port

func (SourceConfigurationImageRepositoryImageConfigurationAttributes) RuntimeEnvironmentVariables

func (SourceConfigurationImageRepositoryImageConfigurationAttributes) StartCommand

type SourceConfigurationImageRepositoryImageConfigurationState

type SourceConfigurationImageRepositoryImageConfigurationState struct {
	Port                        string            `json:"port"`
	RuntimeEnvironmentVariables map[string]string `json:"runtime_environment_variables"`
	StartCommand                string            `json:"start_command"`
}

type SourceConfigurationImageRepositoryState

type SourceConfigurationImageRepositoryState struct {
	ImageIdentifier     string                                                      `json:"image_identifier"`
	ImageRepositoryType string                                                      `json:"image_repository_type"`
	ImageConfiguration  []SourceConfigurationImageRepositoryImageConfigurationState `json:"image_configuration"`
}

type SourceConfigurationState

type SourceConfigurationState struct {
	AutoDeploymentsEnabled      bool                                                  `json:"auto_deployments_enabled"`
	AuthenticationConfiguration []SourceConfigurationAuthenticationConfigurationState `json:"authentication_configuration"`
	CodeRepository              []SourceConfigurationCodeRepositoryState              `json:"code_repository"`
	ImageRepository             []SourceConfigurationImageRepositoryState             `json:"image_repository"`
}

Jump to

Keyboard shortcuts

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