azurerm_api_management_backend

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 {
	// ApiManagementName: string, required
	ApiManagementName terra.StringValue `hcl:"api_management_name,attr" validate:"required"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Protocol: string, required
	Protocol terra.StringValue `hcl:"protocol,attr" validate:"required"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// ResourceId: string, optional
	ResourceId terra.StringValue `hcl:"resource_id,attr"`
	// Title: string, optional
	Title terra.StringValue `hcl:"title,attr"`
	// Url: string, required
	Url terra.StringValue `hcl:"url,attr" validate:"required"`
	// Credentials: optional
	Credentials *Credentials `hcl:"credentials,block"`
	// Proxy: optional
	Proxy *Proxy `hcl:"proxy,block"`
	// ServiceFabricCluster: optional
	ServiceFabricCluster *ServiceFabricCluster `hcl:"service_fabric_cluster,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// Tls: optional
	Tls *Tls `hcl:"tls,block"`
}

Args contains the configurations for azurerm_api_management_backend.

type Credentials

type Credentials struct {
	// Certificate: list of string, optional
	Certificate terra.ListValue[terra.StringValue] `hcl:"certificate,attr"`
	// Header: map of string, optional
	Header terra.MapValue[terra.StringValue] `hcl:"header,attr"`
	// Query: map of string, optional
	Query terra.MapValue[terra.StringValue] `hcl:"query,attr"`
	// CredentialsAuthorization: optional
	Authorization *CredentialsAuthorization `hcl:"authorization,block"`
}

type CredentialsAttributes

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

func (CredentialsAttributes) Authorization

func (CredentialsAttributes) Certificate

func (CredentialsAttributes) Header

func (CredentialsAttributes) InternalRef

func (c CredentialsAttributes) InternalRef() (terra.Reference, error)

func (CredentialsAttributes) InternalTokens

func (c CredentialsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CredentialsAttributes) InternalWithRef

func (CredentialsAttributes) Query

type CredentialsAuthorization

type CredentialsAuthorization struct {
	// Parameter: string, optional
	Parameter terra.StringValue `hcl:"parameter,attr"`
	// Scheme: string, optional
	Scheme terra.StringValue `hcl:"scheme,attr"`
}

type CredentialsAuthorizationAttributes

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

func (CredentialsAuthorizationAttributes) InternalRef

func (CredentialsAuthorizationAttributes) InternalTokens

func (CredentialsAuthorizationAttributes) InternalWithRef

func (CredentialsAuthorizationAttributes) Parameter

func (CredentialsAuthorizationAttributes) Scheme

type CredentialsAuthorizationState

type CredentialsAuthorizationState struct {
	Parameter string `json:"parameter"`
	Scheme    string `json:"scheme"`
}

type CredentialsState

type CredentialsState struct {
	Certificate   []string                        `json:"certificate"`
	Header        map[string]string               `json:"header"`
	Query         map[string]string               `json:"query"`
	Authorization []CredentialsAuthorizationState `json:"authorization"`
}

type Proxy

type Proxy struct {
	// Password: string, optional
	Password terra.StringValue `hcl:"password,attr"`
	// Url: string, required
	Url terra.StringValue `hcl:"url,attr" validate:"required"`
	// Username: string, required
	Username terra.StringValue `hcl:"username,attr" validate:"required"`
}

type ProxyAttributes

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

func (ProxyAttributes) InternalRef

func (p ProxyAttributes) InternalRef() (terra.Reference, error)

func (ProxyAttributes) InternalTokens

func (p ProxyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ProxyAttributes) InternalWithRef

func (p ProxyAttributes) InternalWithRef(ref terra.Reference) ProxyAttributes

func (ProxyAttributes) Password

func (p ProxyAttributes) Password() terra.StringValue

func (ProxyAttributes) Url

func (ProxyAttributes) Username

func (p ProxyAttributes) Username() terra.StringValue

type ProxyState

type ProxyState struct {
	Password string `json:"password"`
	Url      string `json:"url"`
	Username string `json:"username"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aamb *Resource) Attributes() azurermApiManagementBackendAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aamb *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aamb *Resource) State() (*azurermApiManagementBackendState, bool)

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

func (*Resource) StateMust

func (aamb *Resource) StateMust() *azurermApiManagementBackendState

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

func (*Resource) Type

func (aamb *Resource) Type() string

Type returns the Terraform object type for Resource.

type ServiceFabricCluster

type ServiceFabricCluster struct {
	// ClientCertificateId: string, optional
	ClientCertificateId terra.StringValue `hcl:"client_certificate_id,attr"`
	// ClientCertificateThumbprint: string, optional
	ClientCertificateThumbprint terra.StringValue `hcl:"client_certificate_thumbprint,attr"`
	// ManagementEndpoints: set of string, required
	ManagementEndpoints terra.SetValue[terra.StringValue] `hcl:"management_endpoints,attr" validate:"required"`
	// MaxPartitionResolutionRetries: number, required
	MaxPartitionResolutionRetries terra.NumberValue `hcl:"max_partition_resolution_retries,attr" validate:"required"`
	// ServerCertificateThumbprints: set of string, optional
	ServerCertificateThumbprints terra.SetValue[terra.StringValue] `hcl:"server_certificate_thumbprints,attr"`
	// ServiceFabricClusterServerX509Name: min=0
	ServerX509Name []ServiceFabricClusterServerX509Name `hcl:"server_x509_name,block" validate:"min=0"`
}

type ServiceFabricClusterAttributes

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

func (ServiceFabricClusterAttributes) ClientCertificateId

func (sfc ServiceFabricClusterAttributes) ClientCertificateId() terra.StringValue

func (ServiceFabricClusterAttributes) ClientCertificateThumbprint

func (sfc ServiceFabricClusterAttributes) ClientCertificateThumbprint() terra.StringValue

func (ServiceFabricClusterAttributes) InternalRef

func (sfc ServiceFabricClusterAttributes) InternalRef() (terra.Reference, error)

func (ServiceFabricClusterAttributes) InternalTokens

func (sfc ServiceFabricClusterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ServiceFabricClusterAttributes) InternalWithRef

func (ServiceFabricClusterAttributes) ManagementEndpoints

func (sfc ServiceFabricClusterAttributes) ManagementEndpoints() terra.SetValue[terra.StringValue]

func (ServiceFabricClusterAttributes) MaxPartitionResolutionRetries

func (sfc ServiceFabricClusterAttributes) MaxPartitionResolutionRetries() terra.NumberValue

func (ServiceFabricClusterAttributes) ServerCertificateThumbprints

func (sfc ServiceFabricClusterAttributes) ServerCertificateThumbprints() terra.SetValue[terra.StringValue]

func (ServiceFabricClusterAttributes) ServerX509Name

type ServiceFabricClusterServerX509Name

type ServiceFabricClusterServerX509Name struct {
	// IssuerCertificateThumbprint: string, required
	IssuerCertificateThumbprint terra.StringValue `hcl:"issuer_certificate_thumbprint,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type ServiceFabricClusterServerX509NameAttributes

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

func (ServiceFabricClusterServerX509NameAttributes) InternalRef

func (ServiceFabricClusterServerX509NameAttributes) InternalTokens

func (ServiceFabricClusterServerX509NameAttributes) InternalWithRef

func (ServiceFabricClusterServerX509NameAttributes) IssuerCertificateThumbprint

func (sxn ServiceFabricClusterServerX509NameAttributes) IssuerCertificateThumbprint() terra.StringValue

func (ServiceFabricClusterServerX509NameAttributes) Name

type ServiceFabricClusterServerX509NameState

type ServiceFabricClusterServerX509NameState struct {
	IssuerCertificateThumbprint string `json:"issuer_certificate_thumbprint"`
	Name                        string `json:"name"`
}

type ServiceFabricClusterState

type ServiceFabricClusterState struct {
	ClientCertificateId           string                                    `json:"client_certificate_id"`
	ClientCertificateThumbprint   string                                    `json:"client_certificate_thumbprint"`
	ManagementEndpoints           []string                                  `json:"management_endpoints"`
	MaxPartitionResolutionRetries float64                                   `json:"max_partition_resolution_retries"`
	ServerCertificateThumbprints  []string                                  `json:"server_certificate_thumbprints"`
	ServerX509Name                []ServiceFabricClusterServerX509NameState `json:"server_x509_name"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,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) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

type Tls

type Tls struct {
	// ValidateCertificateChain: bool, optional
	ValidateCertificateChain terra.BoolValue `hcl:"validate_certificate_chain,attr"`
	// ValidateCertificateName: bool, optional
	ValidateCertificateName terra.BoolValue `hcl:"validate_certificate_name,attr"`
}

type TlsAttributes

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

func (TlsAttributes) InternalRef

func (t TlsAttributes) InternalRef() (terra.Reference, error)

func (TlsAttributes) InternalTokens

func (t TlsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TlsAttributes) InternalWithRef

func (t TlsAttributes) InternalWithRef(ref terra.Reference) TlsAttributes

func (TlsAttributes) ValidateCertificateChain

func (t TlsAttributes) ValidateCertificateChain() terra.BoolValue

func (TlsAttributes) ValidateCertificateName

func (t TlsAttributes) ValidateCertificateName() terra.BoolValue

type TlsState

type TlsState struct {
	ValidateCertificateChain bool `json:"validate_certificate_chain"`
	ValidateCertificateName  bool `json:"validate_certificate_name"`
}

Jump to

Keyboard shortcuts

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