aws_route53_record

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 Alias

type Alias struct {
	// EvaluateTargetHealth: bool, required
	EvaluateTargetHealth terra.BoolValue `hcl:"evaluate_target_health,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ZoneId: string, required
	ZoneId terra.StringValue `hcl:"zone_id,attr" validate:"required"`
}

type AliasAttributes

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

func (AliasAttributes) EvaluateTargetHealth

func (a AliasAttributes) EvaluateTargetHealth() terra.BoolValue

func (AliasAttributes) InternalRef

func (a AliasAttributes) InternalRef() (terra.Reference, error)

func (AliasAttributes) InternalTokens

func (a AliasAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AliasAttributes) InternalWithRef

func (a AliasAttributes) InternalWithRef(ref terra.Reference) AliasAttributes

func (AliasAttributes) Name

func (AliasAttributes) ZoneId

func (a AliasAttributes) ZoneId() terra.StringValue

type AliasState

type AliasState struct {
	EvaluateTargetHealth bool   `json:"evaluate_target_health"`
	Name                 string `json:"name"`
	ZoneId               string `json:"zone_id"`
}

type Args

type Args struct {
	// AllowOverwrite: bool, optional
	AllowOverwrite terra.BoolValue `hcl:"allow_overwrite,attr"`
	// HealthCheckId: string, optional
	HealthCheckId terra.StringValue `hcl:"health_check_id,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MultivalueAnswerRoutingPolicy: bool, optional
	MultivalueAnswerRoutingPolicy terra.BoolValue `hcl:"multivalue_answer_routing_policy,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Records: set of string, optional
	Records terra.SetValue[terra.StringValue] `hcl:"records,attr"`
	// SetIdentifier: string, optional
	SetIdentifier terra.StringValue `hcl:"set_identifier,attr"`
	// Ttl: number, optional
	Ttl terra.NumberValue `hcl:"ttl,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// ZoneId: string, required
	ZoneId terra.StringValue `hcl:"zone_id,attr" validate:"required"`
	// Alias: optional
	Alias *Alias `hcl:"alias,block"`
	// CidrRoutingPolicy: optional
	CidrRoutingPolicy *CidrRoutingPolicy `hcl:"cidr_routing_policy,block"`
	// FailoverRoutingPolicy: optional
	FailoverRoutingPolicy *FailoverRoutingPolicy `hcl:"failover_routing_policy,block"`
	// GeolocationRoutingPolicy: optional
	GeolocationRoutingPolicy *GeolocationRoutingPolicy `hcl:"geolocation_routing_policy,block"`
	// GeoproximityRoutingPolicy: optional
	GeoproximityRoutingPolicy *GeoproximityRoutingPolicy `hcl:"geoproximity_routing_policy,block"`
	// LatencyRoutingPolicy: optional
	LatencyRoutingPolicy *LatencyRoutingPolicy `hcl:"latency_routing_policy,block"`
	// WeightedRoutingPolicy: optional
	WeightedRoutingPolicy *WeightedRoutingPolicy `hcl:"weighted_routing_policy,block"`
}

Args contains the configurations for aws_route53_record.

type CidrRoutingPolicy

type CidrRoutingPolicy struct {
	// CollectionId: string, required
	CollectionId terra.StringValue `hcl:"collection_id,attr" validate:"required"`
	// LocationName: string, required
	LocationName terra.StringValue `hcl:"location_name,attr" validate:"required"`
}

type CidrRoutingPolicyAttributes

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

func (CidrRoutingPolicyAttributes) CollectionId

func (crp CidrRoutingPolicyAttributes) CollectionId() terra.StringValue

func (CidrRoutingPolicyAttributes) InternalRef

func (crp CidrRoutingPolicyAttributes) InternalRef() (terra.Reference, error)

func (CidrRoutingPolicyAttributes) InternalTokens

func (crp CidrRoutingPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CidrRoutingPolicyAttributes) InternalWithRef

func (CidrRoutingPolicyAttributes) LocationName

func (crp CidrRoutingPolicyAttributes) LocationName() terra.StringValue

type CidrRoutingPolicyState

type CidrRoutingPolicyState struct {
	CollectionId string `json:"collection_id"`
	LocationName string `json:"location_name"`
}

type FailoverRoutingPolicy

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

type FailoverRoutingPolicyAttributes

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

func (FailoverRoutingPolicyAttributes) InternalRef

func (FailoverRoutingPolicyAttributes) InternalTokens

func (frp FailoverRoutingPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FailoverRoutingPolicyAttributes) InternalWithRef

func (FailoverRoutingPolicyAttributes) Type

type FailoverRoutingPolicyState

type FailoverRoutingPolicyState struct {
	Type string `json:"type"`
}

type GeolocationRoutingPolicy

type GeolocationRoutingPolicy struct {
	// Continent: string, optional
	Continent terra.StringValue `hcl:"continent,attr"`
	// Country: string, optional
	Country terra.StringValue `hcl:"country,attr"`
	// Subdivision: string, optional
	Subdivision terra.StringValue `hcl:"subdivision,attr"`
}

type GeolocationRoutingPolicyAttributes

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

func (GeolocationRoutingPolicyAttributes) Continent

func (GeolocationRoutingPolicyAttributes) Country

func (GeolocationRoutingPolicyAttributes) InternalRef

func (GeolocationRoutingPolicyAttributes) InternalTokens

func (grp GeolocationRoutingPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GeolocationRoutingPolicyAttributes) InternalWithRef

func (GeolocationRoutingPolicyAttributes) Subdivision

type GeolocationRoutingPolicyState

type GeolocationRoutingPolicyState struct {
	Continent   string `json:"continent"`
	Country     string `json:"country"`
	Subdivision string `json:"subdivision"`
}

type GeoproximityRoutingPolicy

type GeoproximityRoutingPolicy struct {
	// AwsRegion: string, optional
	AwsRegion terra.StringValue `hcl:"aws_region,attr"`
	// Bias: number, optional
	Bias terra.NumberValue `hcl:"bias,attr"`
	// LocalZoneGroup: string, optional
	LocalZoneGroup terra.StringValue `hcl:"local_zone_group,attr"`
	// GeoproximityRoutingPolicyCoordinates: min=0
	Coordinates []GeoproximityRoutingPolicyCoordinates `hcl:"coordinates,block" validate:"min=0"`
}

type GeoproximityRoutingPolicyAttributes

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

func (GeoproximityRoutingPolicyAttributes) AwsRegion

func (GeoproximityRoutingPolicyAttributes) Bias

func (GeoproximityRoutingPolicyAttributes) Coordinates

func (GeoproximityRoutingPolicyAttributes) InternalRef

func (GeoproximityRoutingPolicyAttributes) InternalTokens

func (grp GeoproximityRoutingPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GeoproximityRoutingPolicyAttributes) InternalWithRef

func (GeoproximityRoutingPolicyAttributes) LocalZoneGroup

type GeoproximityRoutingPolicyCoordinates

type GeoproximityRoutingPolicyCoordinates struct {
	// Latitude: string, required
	Latitude terra.StringValue `hcl:"latitude,attr" validate:"required"`
	// Longitude: string, required
	Longitude terra.StringValue `hcl:"longitude,attr" validate:"required"`
}

type GeoproximityRoutingPolicyCoordinatesAttributes

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

func (GeoproximityRoutingPolicyCoordinatesAttributes) InternalRef

func (GeoproximityRoutingPolicyCoordinatesAttributes) InternalTokens

func (GeoproximityRoutingPolicyCoordinatesAttributes) InternalWithRef

func (GeoproximityRoutingPolicyCoordinatesAttributes) Latitude

func (GeoproximityRoutingPolicyCoordinatesAttributes) Longitude

type GeoproximityRoutingPolicyCoordinatesState

type GeoproximityRoutingPolicyCoordinatesState struct {
	Latitude  string `json:"latitude"`
	Longitude string `json:"longitude"`
}

type GeoproximityRoutingPolicyState

type GeoproximityRoutingPolicyState struct {
	AwsRegion      string                                      `json:"aws_region"`
	Bias           float64                                     `json:"bias"`
	LocalZoneGroup string                                      `json:"local_zone_group"`
	Coordinates    []GeoproximityRoutingPolicyCoordinatesState `json:"coordinates"`
}

type LatencyRoutingPolicy

type LatencyRoutingPolicy struct {
	// Region: string, required
	Region terra.StringValue `hcl:"region,attr" validate:"required"`
}

type LatencyRoutingPolicyAttributes

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

func (LatencyRoutingPolicyAttributes) InternalRef

func (lrp LatencyRoutingPolicyAttributes) InternalRef() (terra.Reference, error)

func (LatencyRoutingPolicyAttributes) InternalTokens

func (lrp LatencyRoutingPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LatencyRoutingPolicyAttributes) InternalWithRef

func (LatencyRoutingPolicyAttributes) Region

type LatencyRoutingPolicyState

type LatencyRoutingPolicyState struct {
	Region string `json:"region"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (arr *Resource) Attributes() awsRoute53RecordAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (arr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (arr *Resource) State() (*awsRoute53RecordState, bool)

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

func (*Resource) StateMust

func (arr *Resource) StateMust() *awsRoute53RecordState

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

func (*Resource) Type

func (arr *Resource) Type() string

Type returns the Terraform object type for Resource.

type WeightedRoutingPolicy

type WeightedRoutingPolicy struct {
	// Weight: number, required
	Weight terra.NumberValue `hcl:"weight,attr" validate:"required"`
}

type WeightedRoutingPolicyAttributes

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

func (WeightedRoutingPolicyAttributes) InternalRef

func (WeightedRoutingPolicyAttributes) InternalTokens

func (wrp WeightedRoutingPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (WeightedRoutingPolicyAttributes) InternalWithRef

func (WeightedRoutingPolicyAttributes) Weight

type WeightedRoutingPolicyState

type WeightedRoutingPolicyState struct {
	Weight float64 `json:"weight"`
}

Jump to

Keyboard shortcuts

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