aws_service_discovery_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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// ForceDestroy: bool, optional
	ForceDestroy terra.BoolValue `hcl:"force_destroy,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// NamespaceId: string, optional
	NamespaceId terra.StringValue `hcl:"namespace_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"`
	// DnsConfig: optional
	DnsConfig *DnsConfig `hcl:"dns_config,block"`
	// HealthCheckConfig: optional
	HealthCheckConfig *HealthCheckConfig `hcl:"health_check_config,block"`
	// HealthCheckCustomConfig: optional
	HealthCheckCustomConfig *HealthCheckCustomConfig `hcl:"health_check_custom_config,block"`
}

Args contains the configurations for aws_service_discovery_service.

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// NamespaceId: string, required
	NamespaceId terra.StringValue `hcl:"namespace_id,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"`
}

DataArgs contains the configurations for aws_service_discovery_service.

type DataDnsConfigAttributes

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

func (DataDnsConfigAttributes) DnsRecords

func (DataDnsConfigAttributes) InternalRef

func (dc DataDnsConfigAttributes) InternalRef() (terra.Reference, error)

func (DataDnsConfigAttributes) InternalTokens

func (dc DataDnsConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataDnsConfigAttributes) InternalWithRef

func (DataDnsConfigAttributes) NamespaceId

func (dc DataDnsConfigAttributes) NamespaceId() terra.StringValue

func (DataDnsConfigAttributes) RoutingPolicy

func (dc DataDnsConfigAttributes) RoutingPolicy() terra.StringValue

type DataDnsConfigDnsRecordsAttributes

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

func (DataDnsConfigDnsRecordsAttributes) InternalRef

func (DataDnsConfigDnsRecordsAttributes) InternalTokens

func (dr DataDnsConfigDnsRecordsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataDnsConfigDnsRecordsAttributes) InternalWithRef

func (DataDnsConfigDnsRecordsAttributes) Ttl

func (DataDnsConfigDnsRecordsAttributes) Type

type DataDnsConfigDnsRecordsState

type DataDnsConfigDnsRecordsState struct {
	Ttl  float64 `json:"ttl"`
	Type string  `json:"type"`
}

type DataDnsConfigState

type DataDnsConfigState struct {
	NamespaceId   string                         `json:"namespace_id"`
	RoutingPolicy string                         `json:"routing_policy"`
	DnsRecords    []DataDnsConfigDnsRecordsState `json:"dns_records"`
}

type DataHealthCheckConfigAttributes

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

func (DataHealthCheckConfigAttributes) FailureThreshold

func (hcc DataHealthCheckConfigAttributes) FailureThreshold() terra.NumberValue

func (DataHealthCheckConfigAttributes) InternalRef

func (DataHealthCheckConfigAttributes) InternalTokens

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

func (DataHealthCheckConfigAttributes) InternalWithRef

func (DataHealthCheckConfigAttributes) ResourcePath

func (DataHealthCheckConfigAttributes) Type

type DataHealthCheckConfigState

type DataHealthCheckConfigState struct {
	FailureThreshold float64 `json:"failure_threshold"`
	ResourcePath     string  `json:"resource_path"`
	Type             string  `json:"type"`
}

type DataHealthCheckCustomConfigAttributes

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

func (DataHealthCheckCustomConfigAttributes) FailureThreshold

func (DataHealthCheckCustomConfigAttributes) InternalRef

func (DataHealthCheckCustomConfigAttributes) InternalTokens

func (DataHealthCheckCustomConfigAttributes) InternalWithRef

type DataHealthCheckCustomConfigState

type DataHealthCheckCustomConfigState struct {
	FailureThreshold float64 `json:"failure_threshold"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_service_discovery_service.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (asds *DataSource) Attributes() dataAwsServiceDiscoveryServiceAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (asds *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (asds *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (asds *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DnsConfig

type DnsConfig struct {
	// NamespaceId: string, required
	NamespaceId terra.StringValue `hcl:"namespace_id,attr" validate:"required"`
	// RoutingPolicy: string, optional
	RoutingPolicy terra.StringValue `hcl:"routing_policy,attr"`
	// DnsConfigDnsRecords: min=1
	DnsRecords []DnsConfigDnsRecords `hcl:"dns_records,block" validate:"min=1"`
}

type DnsConfigAttributes

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

func (DnsConfigAttributes) DnsRecords

func (DnsConfigAttributes) InternalRef

func (dc DnsConfigAttributes) InternalRef() (terra.Reference, error)

func (DnsConfigAttributes) InternalTokens

func (dc DnsConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DnsConfigAttributes) InternalWithRef

func (dc DnsConfigAttributes) InternalWithRef(ref terra.Reference) DnsConfigAttributes

func (DnsConfigAttributes) NamespaceId

func (dc DnsConfigAttributes) NamespaceId() terra.StringValue

func (DnsConfigAttributes) RoutingPolicy

func (dc DnsConfigAttributes) RoutingPolicy() terra.StringValue

type DnsConfigDnsRecords

type DnsConfigDnsRecords struct {
	// Ttl: number, required
	Ttl terra.NumberValue `hcl:"ttl,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type DnsConfigDnsRecordsAttributes

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

func (DnsConfigDnsRecordsAttributes) InternalRef

func (dr DnsConfigDnsRecordsAttributes) InternalRef() (terra.Reference, error)

func (DnsConfigDnsRecordsAttributes) InternalTokens

func (dr DnsConfigDnsRecordsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DnsConfigDnsRecordsAttributes) InternalWithRef

func (DnsConfigDnsRecordsAttributes) Ttl

func (DnsConfigDnsRecordsAttributes) Type

type DnsConfigDnsRecordsState

type DnsConfigDnsRecordsState struct {
	Ttl  float64 `json:"ttl"`
	Type string  `json:"type"`
}

type DnsConfigState

type DnsConfigState struct {
	NamespaceId   string                     `json:"namespace_id"`
	RoutingPolicy string                     `json:"routing_policy"`
	DnsRecords    []DnsConfigDnsRecordsState `json:"dns_records"`
}

type HealthCheckConfig

type HealthCheckConfig struct {
	// FailureThreshold: number, optional
	FailureThreshold terra.NumberValue `hcl:"failure_threshold,attr"`
	// ResourcePath: string, optional
	ResourcePath terra.StringValue `hcl:"resource_path,attr"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
}

type HealthCheckConfigAttributes

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

func (HealthCheckConfigAttributes) FailureThreshold

func (hcc HealthCheckConfigAttributes) FailureThreshold() terra.NumberValue

func (HealthCheckConfigAttributes) InternalRef

func (hcc HealthCheckConfigAttributes) InternalRef() (terra.Reference, error)

func (HealthCheckConfigAttributes) InternalTokens

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

func (HealthCheckConfigAttributes) InternalWithRef

func (HealthCheckConfigAttributes) ResourcePath

func (hcc HealthCheckConfigAttributes) ResourcePath() terra.StringValue

func (HealthCheckConfigAttributes) Type

type HealthCheckConfigState

type HealthCheckConfigState struct {
	FailureThreshold float64 `json:"failure_threshold"`
	ResourcePath     string  `json:"resource_path"`
	Type             string  `json:"type"`
}

type HealthCheckCustomConfig

type HealthCheckCustomConfig struct {
	// FailureThreshold: number, optional
	FailureThreshold terra.NumberValue `hcl:"failure_threshold,attr"`
}

type HealthCheckCustomConfigAttributes

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

func (HealthCheckCustomConfigAttributes) FailureThreshold

func (hccc HealthCheckCustomConfigAttributes) FailureThreshold() terra.NumberValue

func (HealthCheckCustomConfigAttributes) InternalRef

func (HealthCheckCustomConfigAttributes) InternalTokens

func (hccc HealthCheckCustomConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HealthCheckCustomConfigAttributes) InternalWithRef

type HealthCheckCustomConfigState

type HealthCheckCustomConfigState struct {
	FailureThreshold float64 `json:"failure_threshold"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asds *Resource) Attributes() awsServiceDiscoveryServiceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asds *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asds *Resource) State() (*awsServiceDiscoveryServiceState, bool)

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

func (*Resource) StateMust

func (asds *Resource) StateMust() *awsServiceDiscoveryServiceState

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

func (*Resource) Type

func (asds *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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